comparison osdep/timer-win2.c @ 12954:f9755d9c479a

Native darwin timer update. Patch by Dan Christiansen <danchr@daimi.au.dk>
author wight
date Wed, 04 Aug 2004 15:48:43 +0000
parents 1d5205bab61a
children 8df85ad26746
comparison
equal deleted inserted replaced
12953:27e983508347 12954:f9755d9c479a
1 // Precise timer routines for WINDOWS 1 // Precise timer routines for WINDOWS
2 2
3 #include <windows.h> 3 #include <windows.h>
4 #include <mmsystem.h> 4 #include <mmsystem.h>
5 #include "timer.h" 5 #include "timer.h"
6
7 const char *timer_name = "Windows native";
6 8
7 // Returns current time in microseconds 9 // Returns current time in microseconds
8 unsigned int GetTimer(){ 10 unsigned int GetTimer(){
9 return timeGetTime() * 1000; 11 return timeGetTime() * 1000;
10 } 12 }