Function zeitstempel::now [−][src]
pub fn now() -> u64
Returns a timestamp corresponding to “now”.
It can be compared to other timestamps gathered from this API, as long as the host was not rebooted inbetween.
Note
- The difference between two timestamps will include time the system was in sleep or hibernation.
- The difference between two timestamps gathered from this is in nanoseconds.
- The clocks on some operating systems, e.g. on Windows, are not nanosecond-precise. The value will still use nanosecond resolution.