Expand description
Utilities for working with some datatypes used by agde.
Structs
- The offsets previous events cause on any future events which have not taken the previous ones into account.
Functions
- Returns the time since
UNIX_EPOCH
. - Formats
dur
tomm:ss
. - Same as
fmt_dur
but into an object that implementsfmt::Display
. a+b
but with better overflow properties than(a as isize + b) as usize
. Saturates the output to 0 ifa-b < 0
- Get the current time. This supports changing the default
SystemTime::now
, on platforms where that’s not supported (wasm32-unknown-unknown
). - Set the handler to get the current
SystemTime
. a-b
but with better overflow properties thana as isize - b as isize
.