Skip to main content

current_unix_seconds

Function current_unix_seconds 

Source
pub fn current_unix_seconds() -> u64
Expand description

Seconds-since-Unix-epoch from the wall clock, saturating to 0 if the system clock is set before the epoch. Used as the LRU bookkeeping timestamp on CachedModule.last_access_secs. Wall-clock (not monotonic) is the right source here because the value persists across process invocations.