Expand description
Modules§
- time
- The clock under one module path: the types under
std::time’s names, for signatures that need one, and every reading, made throughnowandwall. The UI toolkit and the process services name the clock through this module and neverstd::time, so a process whose clock must be virtualised (a deterministic replay, a test) has one boundary to provide.
Structs§
- Fixed
Clock - Manual
Clock - Monotonic
Clock - Milliseconds since this process first read a monotonic clock; never moves backwards.
- System
Clock
Traits§
Functions§
- from_
std - now
- pin_
wall - Pin the wall clock of the whole process to
atfor a screenshot capture, so every frame shows the same date. The monotonic clock keeps running. - to_std
- try_
unix_ now - try_
unix_ now_ ms - try_
unix_ now_ ns - unix_
now - unix_
now_ i64 - unix_
now_ ms - unix_
now_ ms_ i64 - unix_
now_ ns - wall
- wall_
frozen - Whether a clock is held here, so a wall read answers the hold.
- with_
wall_ ms - Hold this thread’s wall clock at
now_ms; nested holds restore the one before them. This is how a host lends a clock to code that has none.