Module time

Source
Expand description

Support logging the time with different levels of precision.

Structs§

LogTimer 🔒
Actual type to implement log formatting.

Enums§

LogPrecision 🔒
Instructions for what degree of precision to use for our log times.
TimeFmtError 🔒
An error that occurs while trying to format the time.
TimeRounder 🔒
Describe how to compute the current time.

Functions§

ilog10_roundup 🔒
Compute the smallest n such that 10^n >= x.
new_formatter 🔒
Construct a new FormatTime from a given user-supplied description of the desired log granularity.