Skip to main content

unix_ms

Function unix_ms 

Source
pub fn unix_ms() -> u128
Available on crate feature std only.
Expand description

Returns the current Unix time in whole milliseconds.

Shortcut for wall().unix_millis(). Returns zero if the system clock is set to a moment before the Unix epoch.

ยงExamples

use clock_lib as clock;

let now = clock::unix_ms();
assert!(now > 0);