We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 267e19e + 7963440 commit 0032f49Copy full SHA for 0032f49
rand_jitter/src/platform.rs
@@ -21,6 +21,8 @@ pub fn get_nstime() -> u64 {
21
22
#[cfg(any(target_os = "macos", target_os = "ios"))]
23
pub fn get_nstime() -> u64 {
24
+ use libc;
25
+
26
// On Mac OS and iOS std::time::SystemTime only has 1000ns resolution.
27
// We use `mach_absolute_time` instead. This provides a CPU dependent
28
// unit, to get real nanoseconds the result should by multiplied by
0 commit comments