Display time savings also as time percentage.

This commit is contained in:
Bartosz Taudul 2019-01-20 03:16:32 +01:00
parent 31bbdfe2f2
commit d4e9baa0d9

View File

@ -6020,6 +6020,8 @@ void View::DrawCompare()
#endif
TextFocused( "Total time (ext.):", TimeToString( zoneData1.total * adj1 ) );
TextFocused( "Savings:", TimeToString( zoneData1.total * adj1 - zoneData0.total * adj0 ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%.2f%%)", ( zoneData0.total * adj0 ) / ( zoneData1.total * adj1 ) * 100 );
TextFocused( "Max counts:", cumulateTime ? TimeToString( maxVal ) : RealToString( floor( maxVal ), true ) );
#ifdef TRACY_EXTENDED_FONT