Skip to main content

now

Function now 

Source
pub fn now() -> u64
Expand description

Current wall-clock time as seconds since UNIX epoch. Clamped to 0 on the (impossible) pre-1970 system clock. Replaces every driver’s SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_default().as_secs() dance with one function.