Module times

Source
Expand description

Time durations in microseconds and nanoseconds

Plus conversions between them as well as traits for a common u64 based representation and getting the unit as human-readable string from the type for doing type safe statistics (works with the stats module). Also includes formatting as strings in milliseconds but padded to the precision.

Structs§

MicroTime
NanoTime

Traits§

FromMicroseconds
Time
(Only used in tests, should not be treated as important, or ToStringMilliseconds removed?)
ToIncrements
To nsec or usec depending on the type
ToNanoseconds
ToStringMilliseconds
ToStringSeconds