2
* E-UAE - The portable Amiga Emulator
4
* High-resolution timer support.
6
* (c) 2005 Richard Drummond
10
#define EUAE_HRTIMER_H
12
#include "machdep/rpt.h"
13
#include "osdep/hrtimer.h"
15
STATIC_INLINE frame_time_t uae_gethrtime (void)
17
#ifdef HAVE_MACHDEP_TIMER
18
if (currprefs.use_processor_clock)
19
return machdep_gethrtime ();
22
return osdep_gethrtime ();
25
STATIC_INLINE frame_time_t uae_gethrtimebase (void)
27
#ifdef HAVE_MACHDEP_TIMER
28
if (currprefs.use_processor_clock)
29
return machdep_gethrtimebase ();
32
return osdep_gethrtimebase ();
35
STATIC_INLINE void uae_inithrtimer (void)
37
#ifdef HAVE_MACHDEP_TIMER
38
if (currprefs.use_processor_clock && machdep_inithrtimer ())