fix call to gettimeofday()
as of `man gettimeofday` "The use of the timezone structure is obsolete; the tz argument should normally be specified as NULL."
This commit is contained in:
parent
bb9d397975
commit
1fa8caff6c
@ -73,8 +73,7 @@ static ulong64 epoch_usec(void)
|
|||||||
return cur_time;
|
return cur_time;
|
||||||
#else
|
#else
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
gettimeofday(&tv, NULL);
|
||||||
gettimeofday(&tv, &tz);
|
|
||||||
return (ulong64)(tv.tv_sec) * 1000000 + (ulong64)(tv.tv_usec); /* get microseconds */
|
return (ulong64)(tv.tv_sec) * 1000000 + (ulong64)(tv.tv_usec); /* get microseconds */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user