package
0.0.0-20180712231451-df570b367423
Repository: https://github.com/influx6/faux.git
Documentation: pkg.go.dev
# README
LPClock
LPClock implements a custom monotonic lamport clock.
Usage
- Create a clock based on unix timestamps
clock := lpclock.Unix("localhost")
// get new ever increasing monotonic time.
clock.Now()
- Create a clock based on ever increasing counter
clock := lpclock.Lamport("localhost")
// get new ever increasing monotonic time.
clock.Now()