remove gettimeofday stuff
This commit is contained in:
parent
9c6b9a1450
commit
7deda52af6
2 changed files with 4 additions and 2 deletions
|
@ -236,10 +236,12 @@ static unsigned getclock_ms(void)
|
|||
{
|
||||
#ifdef _WIN32
|
||||
return GetTickCount();
|
||||
#else
|
||||
#elif 0
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
return tv.tv_sec*1000 + (tv.tv_usec+500)/1000;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue