mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 19:57:36 +00:00
TIMER: Support 1ms timer resolution in Cygwin
This commit is contained in:
committed by
Paul Koning
parent
8b181a360c
commit
a06ab20512
@@ -88,6 +88,9 @@
|
||||
#include "sim_defs.h"
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#ifdef HAVE_WINMM
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#define SIM_INTERNAL_CLK (SIM_NTIMERS+(1<<30))
|
||||
#define SIM_INTERNAL_UNIT sim_internal_timer_unit
|
||||
@@ -462,7 +465,7 @@ return 0;
|
||||
}
|
||||
#endif /* CLOCK_REALTIME */
|
||||
|
||||
#elif defined (_WIN32)
|
||||
#elif defined (_WIN32) || defined(HAVE_WINMM)
|
||||
|
||||
/* Win32 routines */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user