qint64 QElapsedTimer::restart() { qint64 oldt1 = t1; t1 = getTickCount(); t2 = 0; return ticksToNanoseconds(t1 - oldt1) / 1000000; }
qint64 QElapsedTimer::msecsTo(const QElapsedTimer &other) const { qint64 difference = other.t1 - t1; return ticksToNanoseconds(difference) / 1000000; }
qint64 QElapsedTimer::msecsSinceReference() const { return ticksToNanoseconds(t1) / 1000000; }
qint64 QElapsedTimer::elapsed() const { qint64 elapsed = getTickCount() - t1; return ticksToNanoseconds(elapsed) / 1000000; }
int qt_msectime() { return ticksToNanoseconds(getTickCount()) / 1000000; }