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

Method Now

timer.go:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29type defaultTimer struct{}
30
31func (timer defaultTimer) Now() uint32 {
32 return getUnixTime()
33}
34
35// Cached timer stores Unix time every second and returns the cached value
36type cachedTimer struct {

Callers

nothing calls this directly

Calls 1

getUnixTimeFunction · 0.85

Tested by

no test coverage detected