Bug 1059803. Change FPSCounter to not use ToSecondsSigDigits() part 2

ToSecondsSigDigits() should only really be used for printing values.

--HG--
extra : rebase_source : b5d62b76f95e248f7f14e8559a6ab5a586d26135
This commit is contained in:
Jeff Muizelaar 2014-08-28 10:25:23 -04:00
parent 21ba18e307
commit c9e5585926

View File

@ -103,7 +103,7 @@ FPSCounter::IteratedFullInterval(TimeStamp aTimestamp, double aDuration) {
TimeStamp currentStamp = mFrameTimestamps[mIteratorIndex];
TimeDuration duration = aTimestamp - currentStamp;
return duration.ToSecondsSigDigits() >= aDuration;
return duration.ToSeconds() >= aDuration;
}
void
@ -187,7 +187,7 @@ FPSCounter::BuildHistogram(std::map<int, int>& aFpsData)
currentTimeStamp = GetNextTimeStamp();
TimeDuration interval = currentIntervalStart - currentTimeStamp;
if (interval.ToSecondsSigDigits() >= 1.0 ) {
if (interval.ToSeconds() >= 1.0 ) {
currentIntervalStart = currentTimeStamp;
aFpsData[frameCount]++;
frameCount = 0;