From 347ca5c2fe59c1a000b69e41f71c8a33fecbc4b3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 27 Jun 2021 10:28:53 -0600 Subject: [PATCH] clean up locally-created mess in libs/pbd/microseconds.cc --- libs/pbd/microseconds.cc | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libs/pbd/microseconds.cc b/libs/pbd/microseconds.cc index 5888236edd..a30f465551 100644 --- a/libs/pbd/microseconds.cc +++ b/libs/pbd/microseconds.cc @@ -24,11 +24,6 @@ #include #include // for LARGE_INTEGER #endif -#ifdef __MACH__ -#include -#define CLOCK_REALTIME 0 -#define CLOCK_MONOTONIC 0 -#endif #include "pbd/error.h" #include "pbd/microseconds.h" @@ -41,10 +36,6 @@ static double timer_rate_usecs = 0.0; static mach_timebase_info_data_t timebase; #endif -/** Return a monotonic value for the number of microseconds that have elapsed - * since an arbitrary zero origin. - */ - #ifdef __MACH__ #include #ifndef CLOCK_REALTIME @@ -83,6 +74,9 @@ PBD::microsecond_timer_init () #endif } +/** Return a monotonic value for the number of microseconds that have elapsed + * since an arbitrary zero origin. + */ PBD::microseconds_t PBD::get_microseconds () {