summaryrefslogtreecommitdiffstats
path: root/opgui.c
diff options
context:
space:
mode:
authorAttila Veghelyi <works@veghelyiattila.hu>2023-07-24 21:21:57 +0200
committerAttila Veghelyi <works@veghelyiattila.hu>2023-07-24 21:21:57 +0200
commite3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2 (patch)
tree76502dce5b29b64d08de7dd005426b4fe56c1159 /opgui.c
parent3677ef6a3d3f01f11d9b1511a0383ff166a068fa (diff)
downloadOpenProgrammer-e3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2.tar.gz
OpenProgrammer-e3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2.zip
Remove deprecated function call
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