Skip to main content

Module time

Module time 

Source
Expand description

Wall-clock and digit-counting helpers.

The C reference exposes dn_msec_now, dn_usec_now, current_timestamp_in_millis, and count_digits. This module gathers them as plain functions over std::time::SystemTime.

Functionsยง

count_digits
Number of decimal digits in arg, including a leading zero.
msec_now
Milliseconds since the UNIX epoch.
usec_now
Microseconds since the UNIX epoch.