mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QDateTime>
|
||||
|
||||
#include "OctalCode.h"
|
||||
#include "SharedUtil.h"
|
||||
|
@ -30,9 +31,8 @@ void usecTimestampNowForceClockSkew(int clockSkew) {
|
|||
}
|
||||
|
||||
quint64 usecTimestampNow() {
|
||||
timeval now;
|
||||
gettimeofday(&now, NULL);
|
||||
return (now.tv_sec * 1000000 + now.tv_usec) + ::usecTimestampNowAdjust;
|
||||
qint64 msecSinceEpoch = QDateTime::currentMSecsSinceEpoch();
|
||||
return msecSinceEpoch * 1000 + ::usecTimestampNowAdjust;
|
||||
}
|
||||
|
||||
float randFloat() {
|
||||
|
|
Loading…
Reference in a new issue