mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 11:46:34 +02:00
fix birarda's stupid bug in timestamp creation
This commit is contained in:
parent
b6d255477b
commit
e2c3c253a8
1 changed files with 2 additions and 2 deletions
|
@ -9,11 +9,11 @@
|
|||
#include "SharedUtil.h"
|
||||
|
||||
double usecTimestamp(timeval *time) {
|
||||
return (time->tv_sec * 1000000.0);
|
||||
return (time->tv_sec * 1000000.0 + time->tv_usec);
|
||||
}
|
||||
|
||||
double usecTimestampNow() {
|
||||
timeval now;
|
||||
gettimeofday(&now, NULL);
|
||||
return (now.tv_sec * 1000000.0);
|
||||
return (now.tv_sec * 1000000.0 + now.tv_usec);
|
||||
}
|
Loading…
Reference in a new issue