uae-wii/src/od-win32/hrtimer.h
2009-05-05 15:36:48 +00:00

31 lines
511 B
C

/*
* E-UAE - The portable Amiga Emulator
*
* Generic high-resolution timer support.
*
* (c) 2005 Richard Drummond
*/
#ifndef EUAE_OSDEP_HRTIMER_H
#define EUAE_OSDEP_HRTIMER_H
#include "posixemu.h"
#include "machdep/rpt.h"
STATIC_INLINE frame_time_t osdep_gethrtime (void)
{
struct timeval t;
gettimeofday (&t, 0);
return t.tv_sec * 1000000 + t.tv_usec;
}
STATIC_INLINE frame_time_t osdep_gethrtimebase (void)
{
return 1000000;
}
STATIC_INLINE void osdep_inithrtimer (void)
{
}
#endif