MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Since

Method Since

channels/log_entry.go:192–194  ·  view source on GitHub ↗

Since returns the nanoseconds that have passed since this timestamp. This function can overflow.

()

Source from the content-addressed store, hash-verified

190
191// Since returns the nanoseconds that have passed since this timestamp. This function can overflow.
192func (t FeedTimestamp) Since() int64 {
193 return time.Now().UnixNano() - int64(t)
194}
195
196// OlderThan returns true if the timestamp is older than the given duration.
197func (t FeedTimestamp) OlderThan(duration time.Duration) bool {

Callers 15

OlderThanMethod · 0.95
OlderOrEqualMethod · 0.95
TestAuthenticationSpeedFunction · 0.45
PruneHistoryMethod · 0.45
TestBcryptCostTimesFunction · 0.45
getAgentConfigMethod · 0.45
NewClusterAgentFunction · 0.45
setMetaDataMethod · 0.45
CollectMethod · 0.45
StringMethod · 0.45
LongRunningTestFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestAuthenticationSpeedFunction · 0.36
TestBcryptCostTimesFunction · 0.36
testConcurrentlyFunction · 0.36