Crate chroniker [] [src]

Modules

units

The units module is the most important module in the chroniker library. Most other functions rely on this module. All it does is convert different TimeUnits.

Structs

Timer

A thin wrapper for std::time::Instant. The timer is for timing different parts of a program

Functions

current_time

Returns the current time since January 1st, 1970 in a given unit.

current_time_millis

Returns the current system time in milliseconds.

sleep

Sleeps the thread for the supplied amount of time in milliseconds.