Documentation
¶
Overview ¶
ats controls the go routines for the access time service. This allows more efficient unixnano operations for cache access times. We will have one per binary (usually per server).
Index ¶
Constants ¶
View Source
const TickInterval = 100 * time.Millisecond
Update every 100ms for gathering access time in unix nano.
Variables ¶
This section is empty.
Functions ¶
func AccessTime ¶
func AccessTime() int64
Will load the access time from an atomic. If no one has registered this will return 0 or stale data. It is the responsibility of the user to properly register and unregister.
func Unregister ¶
func Unregister()
Unregister usage. We will shutdown the go routine if no more registered users.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.