Skip to content

Atomic operations on monotonic clock for your time measurements in Go.

License

Notifications You must be signed in to change notification settings

temoto/atomic_clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Build status Coverage Go Report Card

About

Atomic operations on monotonic clock for your time measurements in Go.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published