Function cuprate_helper::time::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.