Added msecTimestampNow as usecTimestampNow narrowing

This commit is contained in:
Atlante45 2015-07-23 15:01:46 -07:00
parent c5901c3f6b
commit 82545df266
2 changed files with 5 additions and 0 deletions

View file

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

View file

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