This commit is contained in:
Ralf Jung 2020-03-31 17:53:27 +02:00
parent 62eaecd2aa
commit 26b5012368

View file

@ -20,7 +20,7 @@ fn main() {
let now2 = Instant::now();
assert!(now2 > now1);
#[cfg(target_os = "linux")]
#[cfg(target_os = "linux")] // TODO: macOS does not support Instant subtraction
{
let diff = now2.duration_since(now1);
assert!(diff.as_micros() > 0);