clean up locally-created mess in libs/pbd/microseconds.cc
This commit is contained in:
parent
412b6a922d
commit
347ca5c2fe
@ -24,11 +24,6 @@
|
|||||||
#include <profileapi.h>
|
#include <profileapi.h>
|
||||||
#include <windows.h> // for LARGE_INTEGER
|
#include <windows.h> // for LARGE_INTEGER
|
||||||
#endif
|
#endif
|
||||||
#ifdef __MACH__
|
|
||||||
#include <mach/mach_time.h>
|
|
||||||
#define CLOCK_REALTIME 0
|
|
||||||
#define CLOCK_MONOTONIC 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "pbd/error.h"
|
#include "pbd/error.h"
|
||||||
#include "pbd/microseconds.h"
|
#include "pbd/microseconds.h"
|
||||||
@ -41,10 +36,6 @@ static double timer_rate_usecs = 0.0;
|
|||||||
static mach_timebase_info_data_t timebase;
|
static mach_timebase_info_data_t timebase;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Return a monotonic value for the number of microseconds that have elapsed
|
|
||||||
* since an arbitrary zero origin.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef __MACH__
|
#ifdef __MACH__
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h>
|
||||||
#ifndef CLOCK_REALTIME
|
#ifndef CLOCK_REALTIME
|
||||||
@ -83,6 +74,9 @@ PBD::microsecond_timer_init ()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Return a monotonic value for the number of microseconds that have elapsed
|
||||||
|
* since an arbitrary zero origin.
|
||||||
|
*/
|
||||||
PBD::microseconds_t
|
PBD::microseconds_t
|
||||||
PBD::get_microseconds ()
|
PBD::get_microseconds ()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user