From e3f91f7f6e7c5ff44232f1dadb7f17166bd85fd2 Mon Sep 17 00:00:00 2001 From: Attila Veghelyi Date: Mon, 24 Jul 2023 21:21:57 +0200 Subject: Remove deprecated function call --- opgui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'opgui.c') 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 -- cgit v1.2.3-54-g00ecf