Commit aafcd15b authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed time precision to ms (WINAPI implementation)

parent 65d82b64
......@@ -2286,6 +2286,13 @@ public:
int secs = 0;
int msecs = 0;
#if defined(WIN32) || defined(_WIN32)
SYSTEMTIME st;
memset(&st, 0, sizeof(SYSTEMTIME));
GetSystemTime(&st);
hours = st.wHour;
mins = st.wMinute;
secs = st.wSecond;
msecs = st.wMilliseconds;
#else
struct timeval tv;
gettimeofday(&tv, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment