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


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?


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


Indeed I do, thanks!