summaryrefslogtreecommitdiffstats
path: root/opgui.c
diff options
context:
space:
mode:
Diffstat (limited to 'opgui.c')
-rw-r--r--opgui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/opgui.c b/opgui.c
index 1268901..8340808 100644
--- a/opgui.c
+++ b/opgui.c
@@ -1538,9 +1538,14 @@ void msDelay(double delay)
///
/// Get system time
DWORD GetTickCount(){
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ return tv.tv_sec*1000+tv.tv_usec/1000;
+/*
struct timeb now;
ftime(&now);
return now.time*1000+now.millitm;
+*/
}
#endif