Expand description
Time-related operations.
Structs§
- A
Duration
type to represent a span of time, typically used for system timeouts.
Constants§
- Number of microseconds in a second.
- Number of milliseconds in a second.
- Number of nanoseconds in a microsecond.
- Number of nanoseconds in a millisecond.
- Number of nanoseconds in a second.
- The timer IRQ number.
Functions§
- Busy waiting for the given duration.
- Busy waiting until reaching the given deadline.
- Returns the current clock time in hardware ticks.
- Return epoch offset in nanoseconds (wall time offset to monotonic clock start).
- Returns the time elapsed since system boot in
TimeValue
. - Returns nanoseconds elapsed since system boot.
- Converts nanoseconds to hardware ticks.
- Set a one-shot timer.
- Converts hardware ticks to nanoseconds.
- Returns the time elapsed since epoch (also known as realtime) in
TimeValue
. - Returns nanoseconds elapsed since epoch (also known as realtime).
Type Aliases§
- A measurement of the system clock.