mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 15:24:07 +02:00
Last touch to removing gettimeofday
This commit is contained in:
parent
0479aaba46
commit
be2db49e08
1 changed files with 3 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
|
#include <QDateTime>
|
||||||
|
|
||||||
#include "OctalCode.h"
|
#include "OctalCode.h"
|
||||||
#include "SharedUtil.h"
|
#include "SharedUtil.h"
|
||||||
|
@ -30,9 +31,8 @@ void usecTimestampNowForceClockSkew(int clockSkew) {
|
||||||
}
|
}
|
||||||
|
|
||||||
quint64 usecTimestampNow() {
|
quint64 usecTimestampNow() {
|
||||||
timeval now;
|
qint64 msecSinceEpoch = QDateTime::currentMSecsSinceEpoch();
|
||||||
gettimeofday(&now, NULL);
|
return msecSinceEpoch * 1000 + ::usecTimestampNowAdjust;
|
||||||
return (now.tv_sec * 1000000 + now.tv_usec) + ::usecTimestampNowAdjust;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float randFloat() {
|
float randFloat() {
|
||||||
|
|
Loading…
Reference in a new issue