MCPcopy
hub / github.com/coocood/freecache / Timer

Interface Timer

timer.go:9–12  ·  view source on GitHub ↗

Timer holds representation of current time.

Source from the content-addressed store, hash-verified

7
8// Timer holds representation of current time.
9type Timer interface {
10 // Give current time (in seconds)
11 Now() uint32
12}
13
14// Timer that must be stopped.
15type StoppableTimer interface {

Callers 8

setMethod · 0.65
touchMethod · 0.65
locateMethod · 0.65
ttlMethod · 0.65
getUnixTimeFunction · 0.65
nextForSlotMethod · 0.65
NowMethod · 0.65
TestGetWithExpirationFunction · 0.65

Implementers 3

defaultTimertimer.go
cachedTimertimer.go
mockTimercache_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…