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

Function getUnixTime

timer.go:24–26  ·  view source on GitHub ↗

Helper function that returns Unix time in seconds

()

Source from the content-addressed store, hash-verified

22
23// Helper function that returns Unix time in seconds
24func getUnixTime() uint32 {
25 return uint32(time.Now().Unix())
26}
27
28// Default timer reads Unix time always when requested
29type defaultTimer struct{}

Callers 3

NowMethod · 0.85
NewCachedTimerFunction · 0.85
updateMethod · 0.85

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…