[][src]Module tox_core::time

Functions to work with time

Functions

clock_elapsed

Returns the amount of time elapsed since this instant was created. Should be used instead of Instant::elapsed in order to work with mocked tokio_timer::clock::now().

clock_now

Returns an Instant corresponding to "now". Should be used instead of tokio_timer::clock::now() to have zero cost mocked time.

unix_time

Return number of seconds that have elapsed since Unix epoch.