get_current_time

Function get_current_time 

Source
pub fn get_current_time() -> Result<u64>
Expand description

Gets the current time as a unix timestamp (seconds since the epoch)

ยงReturns

  • Result<u64> - The current time as a unix timestamp, or an error if the system time cannot be determined.