mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
14 lines
276 B
C++
14 lines
276 B
C++
#ifdef _WIN32
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
#include "Systime.h"
|
|
|
|
int gettimeofday(timeval* p_tv, timezone* p_tz) {
|
|
int tt = timeGetTime();
|
|
|
|
p_tv->tv_sec = tt / 1000;
|
|
p_tv->tv_usec = tt % 1000 * 1000;
|
|
return 0;
|
|
}
|
|
|
|
#endif
|