mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Display time savings also as time percentage.
This commit is contained in:
parent
31bbdfe2f2
commit
d4e9baa0d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user