mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-06-13 05:58:48 +02:00
31 lines
511 B
C
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
|