Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock interface { // Time is used to return the current value of the clock Now() Time // Increment is used to increment and return the value of the clock Increment() Time // Witness is called to update our local clock if necessary after // witnessing a clock value received from another process Witness(Time) // Clone a clock with the same local time underneath Clone() Clock // Reset the clock Reset() }
Clock is a thread safe implementation of a clock.
Click to show internal directories.
Click to hide internal directories.