Lines 1-16
Link Here
|
1 |
- Use monotonic clock for timeouts |
1 |
- Use monotonic clock for timeouts |
2 |
|
2 |
|
3 |
--- src/util/os_time.c.orig 2018-01-23 18:08:50 UTC |
3 |
--- src/util/os_time.c.orig 2018-04-21 05:48:25 UTC |
4 |
+++ src/util/os_time.c |
4 |
+++ src/util/os_time.c |
5 |
@@ -55,7 +55,7 @@ |
|
|
6 |
int64_t |
7 |
os_time_get_nano(void) |
8 |
{ |
9 |
-#if defined(PIPE_OS_LINUX) |
10 |
+#if defined(PIPE_OS_BSD) || defined(PIPE_OS_LINUX) |
11 |
|
12 |
struct timespec tv; |
13 |
clock_gettime(CLOCK_MONOTONIC, &tv); |
14 |
@@ -95,7 +95,7 @@ os_time_get_nano(void) |
5 |
@@ -95,7 +95,7 @@ os_time_get_nano(void) |
15 |
void |
6 |
void |
16 |
os_time_sleep(int64_t usecs) |
7 |
os_time_sleep(int64_t usecs) |