Module clocksource::coarse

source ·
Expand description

Coarse time representations represent times and durations as a whole number of seconds and use 32bit primitives as the internal representation.

Unlike std::time, these types always have a fixed size representation and also includes atomic types.

Structs§

  • A coarse::AtomicDuration is a duration that is measured in seconds and represented as an unsigned 32bit value. Since it is implemented using atomic primitives, it can be used when the duration needs interior mutability and atomic operations.
  • A coarse::AtomicInstant is a measurement of a monotonically nondecreasing clock. It is opaque and useful only with the duration types.
  • An atomic measurement of the system clock in seconds.
  • A duration measured in seconds.
  • A coarse::Instant is a measurement of a monotonically nondecreasing clock. It is opaque and useful only with the duration types.
  • A measurement of the system clock in seconds.