Skip to main content

now_nanos

Function now_nanos 

Source
pub fn now_nanos() -> u64
Expand description

Get the current time in nanoseconds.

ยงSafety

  • Good until the year 2554
  • Always use a checked substraction since this can return 0