Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/coocood/freecache
/ Now
Method
Now
timer.go:11–11 ·
view source on GitHub ↗
Give current time (in seconds)
()
Source
from the content-addressed store, hash-verified
9
type
Timer
interface
{
10
// Give current time (in seconds)
11
Now() uint32
12
}
13
14
// Timer that must be stopped.
Callers
14
set
Method · 0.65
touch
Method · 0.65
locate
Method · 0.65
ttl
Method · 0.65
getUnixTime
Function · 0.65
nextForSlot
Method · 0.65
Now
Method · 0.65
TestGetWithExpiration
Function · 0.65
TestGetWithExpirationAndBuf
Function · 0.65
TestAverageAccessTimeWhenUpdateInplace
Function · 0.65
TestAverageAccessTimeWhenUpdateWithNewSpace
Function · 0.65
TestInt64Key
Function · 0.65
Implementers
3
defaultTimer
timer.go
cachedTimer
timer.go
mockTimer
cache_test.go
Calls
no outgoing calls
Tested by
7
Now
Method · 0.52
TestGetWithExpiration
Function · 0.52
TestGetWithExpirationAndBuf
Function · 0.52
TestAverageAccessTimeWhenUpdateInplace
Function · 0.52
TestAverageAccessTimeWhenUpdateWithNewSpace
Function · 0.52
TestInt64Key
Function · 0.52
TestIteratorExpireAt
Function · 0.52