mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 13:53:11 +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>
|
||||
#endif
|
||||
|
||||
long long usecTimestamp(timeval *time) {
|
||||
unsigned long long usecTimestamp(timeval *time) {
|
||||
return (time->tv_sec * 1000000 + time->tv_usec);
|
||||
}
|
||||
|
||||
long long usecTimestampNow() {
|
||||
unsigned long long usecTimestampNow() {
|
||||
timeval now;
|
||||
gettimeofday(&now, NULL);
|
||||
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 MILLIIMETER = 0.001f;
|
||||
|
||||
long long usecTimestamp(timeval *time);
|
||||
long long usecTimestampNow();
|
||||
unsigned long long usecTimestamp(timeval *time);
|
||||
unsigned long long usecTimestampNow();
|
||||
|
||||
float randFloat();
|
||||
int randIntInRange (int min, int max);
|
||||
|
|
Loading…
Reference in a new issue