get_unix_timestamp

Function get_unix_timestamp 

Source
pub fn get_unix_timestamp() -> u64
Expand description

Get the current Unix timestamp, in seconds.

This function is accurate, as it always retrieves the current time for each call. In scenarios where this function is being called frequently, it may pose an unacceptable performance overhead. In such cases, consider using get_coarse_unix_timestamp, which provides a cached value that is updated periodically.