fix an obvious typo while trying to access the tv_usec member
This commit is contained in:
parent
bd7bb299c0
commit
ebd27aabaa
@ -33,7 +33,7 @@ unsigned long long monotonic_us(void)
|
||||
{
|
||||
struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
return tv.tv_sec * 1000000ULL + tv_usec;
|
||||
return tv.tv_sec * 1000000ULL + tv.tv_usec;
|
||||
}
|
||||
|
||||
unsigned monotonic_sec(void)
|
||||
|
Loading…
Reference in New Issue
Block a user