package
module
Version:
v1.0.2-0...-bc31757
Opens a new window with list of versions in this module.
Published: Mar 13, 2020
License: CC0-1.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
¶
What
atomic_clock is convenient API around atomic int64 of monotonic clock.
Use for time accounting. Do not use where actual time value matters.
Usage
Documentation
Key takeaways:
go get github.com/temoto/atomic_clock
- Zero value of
atomic_clock.Clock{}
is usable.
- Content is single int64 offset in nanoseconds from undefined epoch. Clock source is
time.Since(epoch)
which is monotonic since Go 1.9.
Flair
Documentation
¶
Package atomic_clock is convenient API around atomic int64 monotonic clock.
Use for time accounting. Do not use where actual time value matters.
func (c *Clock) SetNowIfZero()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.