Symbian's QElapsedTimer::restart() fixed to return ms rather than us
Symbian's QElapsedTimer::restart() had accidently been changed to return a microsecond count rather than milliseconds, when the elapsed timer resolution was increased. This fixes it back to milliseconds. Reviewed-by: Shane Kearns (cherry picked from commit 39202973e3fb7ff37033290b29efa1b9edc674fb)bb10
parent
6c42aa3b0f
commit
3e787c470d
|
|
@ -95,7 +95,7 @@ qint64 QElapsedTimer::restart()
|
|||
qint64 oldt1 = t1;
|
||||
t1 = getMicrosecondFromTick();
|
||||
t2 = 0;
|
||||
return t1 - oldt1;
|
||||
return (t1 - oldt1) / 1000;
|
||||
}
|
||||
|
||||
qint64 QElapsedTimer::nsecsElapsed() const
|
||||
|
|
|
|||
Loading…
Reference in New Issue