Skip to content
Snippets Groups Projects
Commit 2443e1f3 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

T. Bharath fixed his mm lib timer resolution fix

parent eb164098
No related branches found
No related tags found
No related merge requests found
......@@ -56,10 +56,14 @@ gettimeofday (struct timeval *tp, void *nothing)
** of 1ms.Need to link against winmm.lib for this
**/
unsigned long Ticks = 0;
unsigned long Sec =0;
unsigned long Usec = 0;
Ticks = timeGetTime();
tp->tv_sec = Ticks%1000;
tp->tv_usec = (Ticks - (tp->tv_sec*1000))*1000;
Sec = Ticks/1000;
Usec = (Ticks - (Sec*1000))*1000;
tp->tv_sec = Sec;
tp->tv_usec = Usec;
#endif
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment