cuprate_helper::time

Function current_unix_timestamp

Source
pub fn current_unix_timestamp() -> u64
Expand description

Returns the current system time as a UNIX timestamp.

assert!(current_unix_timestamp() > 0);

ยงPanics

This function panics if the call to get the system time fails.