mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 13:53:11 +02:00
Added msecTimestampNow as usecTimestampNow narrowing
This commit is contained in:
parent
c5901c3f6b
commit
82545df266
2 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,10 @@ void usecTimestampNowForceClockSkew(int clockSkew) {
|
|||
::usecTimestampNowAdjust = clockSkew;
|
||||
}
|
||||
|
||||
quint64 msecTimestampNow(bool wantDebug) {
|
||||
return usecTimestampNow() / 1000;
|
||||
}
|
||||
|
||||
quint64 usecTimestampNow(bool wantDebug) {
|
||||
static bool usecTimestampNowIsInitialized = false;
|
||||
static qint64 TIME_REFERENCE = 0; // in usec
|
||||
|
|
|
@ -64,6 +64,7 @@ inline bool operator!=(const xColor& lhs, const xColor& rhs)
|
|||
// Use a custom User-Agent to avoid ModSecurity filtering, e.g. by hosting providers.
|
||||
const QByteArray HIGH_FIDELITY_USER_AGENT = "Mozilla/5.0 (HighFidelityInterface)";
|
||||
|
||||
quint64 msecTimestampNow(bool wantDebug = false);
|
||||
quint64 usecTimestampNow(bool wantDebug = false);
|
||||
void usecTimestampNowForceClockSkew(int clockSkew);
|
||||
|
||||
|
|
Loading…
Reference in a new issue