mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 16:41:57 +02:00
change usec timestamp returns to unsigned long long for 32 bit
This commit is contained in:
parent
cf2d98e7b4
commit
4e9bac4617
2 changed files with 4 additions and 4 deletions
|
@ -22,11 +22,11 @@
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
long long usecTimestamp(timeval *time) {
|
unsigned long long usecTimestamp(timeval *time) {
|
||||||
return (time->tv_sec * 1000000 + time->tv_usec);
|
return (time->tv_sec * 1000000 + time->tv_usec);
|
||||||
}
|
}
|
||||||
|
|
||||||
long long usecTimestampNow() {
|
unsigned long long usecTimestampNow() {
|
||||||
timeval now;
|
timeval now;
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
return (now.tv_sec * 1000000 + now.tv_usec);
|
return (now.tv_sec * 1000000 + now.tv_usec);
|
||||||
|
|
|
@ -36,8 +36,8 @@ static const float DECIMETER = 0.1f;
|
||||||
static const float CENTIMETER = 0.01f;
|
static const float CENTIMETER = 0.01f;
|
||||||
static const float MILLIIMETER = 0.001f;
|
static const float MILLIIMETER = 0.001f;
|
||||||
|
|
||||||
long long usecTimestamp(timeval *time);
|
unsigned long long usecTimestamp(timeval *time);
|
||||||
long long usecTimestampNow();
|
unsigned long long usecTimestampNow();
|
||||||
|
|
||||||
float randFloat();
|
float randFloat();
|
||||||
int randIntInRange (int min, int max);
|
int randIntInRange (int min, int max);
|
||||||
|
|
Loading…
Reference in a new issue