SH-3275 WIP interesting Update viewer metrics system to be more flexible

quantized fast timer range to nearest 20ms for easier reading
master
Richard Linden 2013-02-05 11:31:45 -08:00
parent eb6c8959ca
commit b49cdb1c7a
1 changed files with 2 additions and 0 deletions

View File

@ -1402,6 +1402,8 @@ void LLFastTimerView::updateTotalTime()
mTotalTimeDisplay = LLUnit<LLUnits::Milliseconds, F32>(100);
break;
}
mTotalTimeDisplay = LLUnit<LLUnits::Milliseconds, F64>(llceil(mTotalTimeDisplay.as<LLUnits::Milliseconds, F64>().value() / (20.f)) * 20.f);
}
void LLFastTimerView::drawBars()