mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
fix birarda's stupid bug in timestamp creation
This commit is contained in:
parent
eb37d1fbf8
commit
82435582a8
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