mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-06-13 05:58:48 +02:00
33 lines
571 B
C
33 lines
571 B
C
/*
|
|
* E-UAE - The portable Amiga Emulator
|
|
*
|
|
* AmigaOS high-resolution timer support.
|
|
*
|
|
* (c) 2005 Richard Drummond
|
|
*/
|
|
|
|
#ifdef __AROS__
|
|
# include "od-generic/hrtimer.h"
|
|
#else
|
|
# ifndef EUAE_OSDEP_HRTIMER_H
|
|
# define EUAE_OSDEP_HRTIMER_H
|
|
|
|
# include "machdep/rpt.h"
|
|
|
|
# include <devices/timer.h>
|
|
# include <proto/timer.h>
|
|
|
|
STATIC_INLINE frame_time_t osdep_gethrtime (void)
|
|
{
|
|
struct EClockVal etime;
|
|
|
|
ReadEClock (&etime);
|
|
return etime.ev_lo;
|
|
}
|
|
|
|
extern frame_time_t osdep_gethrtimebase (void);
|
|
extern int osdep_inithrtimer (void);
|
|
# endif
|
|
|
|
#endif
|