QmlProfiler: Time display with 3 decimals

Change-Id: I2421f7cd01e89a41489d5e6355cc83833e21ffcc
Reviewed-on: http://codereview.qt.nokia.com/535
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
This commit is contained in:
Christiaan Janssen
2011-06-21 09:58:05 +02:00
parent b2e9ab1e4e
commit eb41ffe539

View File

@@ -91,12 +91,11 @@ TiledCanvas {
if (t<1000) return t+" μs";
t = Math.floor(t/100)/10;
if (t<1000) return t+" ms";
t = Math.floor(t/100)/10;
t = Math.floor(t)/1000;
if (t<60) return t+" s";
t = Math.floor(t)/60;
if (t<60) return t+" m";
t = Math.floor(t)/60;
return t+" h";
var m = Math.floor(t/60);
t = Math.floor(t - m*60);
return m+"m"+t+"s";
}
function detailedPrintTime( t )