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 1414 * limitations under the License.
1515 */
1616
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-
2617#include "bson-config.h"
2718#include "bson-compat.h"
2819
3425
3526#include "bson-clock.h"
3627
37-
3828/*
3929 *--------------------------------------------------------------------------
4030 *
@@ -125,9 +115,6 @@ bson_get_monotonic_time (void)
125115 * int64_t to avoid truncation. */
126116 clock_gettime (CLOCK_MONOTONIC , & ts );
127117 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 );
131118#elif defined(_WIN32 )
132119 /* Despite it's name, this is in milliseconds! */
133120 int64_t ticks = GetTickCount64 ();
You can’t perform that action at this time.
0 commit comments