Skip to main content

wall_nanos

Function wall_nanos 

Source
pub fn wall_nanos() -> UnixNanos
Expand description

Current wall-clock time in nanoseconds since the Unix epoch.

Returns zero if the system clock is before 1970. It is the local clock: nothing guarantees it matches the broker’s clock.

§Examples

assert!(brokapi_tbank::ids::wall_nanos().as_nanos() > 0);