Expand description
Time management for COGS measurements.
COGS are derived from measured amount of work, which usually is done by taking a timed measure.
To allow different types of time measures other than wall time, this module exposes a Clock
trait.
Structs§
- Duration
- A
Durationtype to represent a span of time, typically used for system timeouts. - Instant
- An instant in time.
- Static
Clock - A
Clockwhich can be set to any value. - System
Clock - A system
Clockwhich uses the monotonically increasingInstantas its source, measuring wall time.
Traits§
- Clock
- A clock for taking COGS measurements.