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.
1 parent bd588df commit 4fa4df9Copy full SHA for 4fa4df9
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -46,9 +46,14 @@ unsigned int internal_sleep(unsigned int seconds) {
46
return 0;
47
}
48
49
-u64 NanoTime() { return _zx_clock_get(ZX_CLOCK_UTC); }
+u64 NanoTime() {
50
+ zx_time_t time;
51
+ zx_status_t status = _zx_clock_get_new(ZX_CLOCK_UTC, &time);
52
+ CHECK_EQ(status, ZX_OK);
53
+ return time;
54
+}
55
-u64 MonotonicNanoTime() { return _zx_clock_get(ZX_CLOCK_MONOTONIC); }
56
+u64 MonotonicNanoTime() { return _zx_clock_get_monotonic(); }
57
58
uptr internal_getpid() {
59
zx_info_handle_basic_t info;
0 commit comments