MCPcopy Create free account
hub / github.com/pion/ice / LastSent

Method LastSent

candidate_base.go:524–530  ·  view source on GitHub ↗

LastSent returns a time.Time indicating the last time this candidate was sent.

()

Source from the content-addressed store, hash-verified

522// LastSent returns a time.Time indicating the last time
523// this candidate was sent.
524func (c *candidateBase) LastSent() time.Time {
525 if lastSent := c.lastSent.Load(); lastSent != 0 {
526 return getMonoTime(lastSent)
527 }
528
529 return time.Time{}
530}
531
532func (c *candidateBase) setLastSent(t time.Time) {
533 c.lastSent.Store(getMonoNanos(t))

Callers 1

TestCandidateLastSentFunction · 0.95

Calls 2

getMonoTimeFunction · 0.85
LoadMethod · 0.80

Tested by 1

TestCandidateLastSentFunction · 0.76