File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
-
18
- #ifdef __APPLE__
19
- #include <mach/clock.h>
20
- #include <mach/mach.h>
21
- #include <mach/mach_time.h>
22
- #include <sys/time.h>
23
- #endif
24
-
25
-
26
17
#include "bson-config.h"
27
18
#include "bson-compat.h"
28
19
34
25
35
26
#include "bson-clock.h"
36
27
37
-
38
28
/*
39
29
*--------------------------------------------------------------------------
40
30
*
@@ -125,9 +115,6 @@ bson_get_monotonic_time (void)
125
115
* int64_t to avoid truncation. */
126
116
clock_gettime (CLOCK_MONOTONIC , & ts );
127
117
return (((int64_t ) ts .tv_sec * 1000000 ) + (ts .tv_nsec / 1000 ));
128
- #elif defined(__APPLE__ )
129
- const uint64_t nsec = clock_gettime_nsec_np (CLOCK_UPTIME_RAW );
130
- return (int64_t ) (nsec / 1000u );
131
118
#elif defined(_WIN32 )
132
119
/* Despite it's name, this is in milliseconds! */
133
120
int64_t ticks = GetTickCount64 ();
You can’t perform that action at this time.
0 commit comments