[SOLVED] Where are non-monotonic hi-res clock?


#1

Hi! I want to use precise_time_ns from the time crate for bench making purposes. However the crate is sort of deprecated and suggests to use std::time or chrono instead. But they don’t have this function. Am I missing something?


#2

Probably you are looking for std::time::Instant.


#3

Indeed I do, thanks!