nautilus_core::time

Function duration_since_unix_epoch

Source
pub fn duration_since_unix_epoch() -> Duration
Expand description

Returns the duration since the UNIX epoch.

This implementation relies on SystemTime::now and provides timestamps with nanosecond precision. It panics if the system time is set before the UNIX epoch.