change usec timestamp returns to unsigned long long for 32 bit

This commit is contained in:
Stephen Birarda 2013-07-09 16:55:58 -07:00
parent cf2d98e7b4
commit 4e9bac4617
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);