Documentation
¶
Overview ¶
Package clocktest holds a clock for tests that must see how often an operation reads its owner's clock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stepping ¶
type Stepping struct {
// contains filtered or unexported fields
}
Stepping is a clock that moves on by its step at every reading. An operation that reads it twice sees two different times, so a record and its receipt stamped by separate readings disagree where one shared reading would make them equal.
func NewStepping ¶
NewStepping is a clock whose first reading is start.
Click to show internal directories.
Click to hide internal directories.