Skip to main content

Module time

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.