mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Improve time comparing display.
This commit is contained in:
parent
ec7fc9ffb6
commit
86717de6e1
@ -207,12 +207,10 @@ static void PrintSpeedupOrSlowdown( double time_this, double time_external, cons
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
ImGui::SameLine();
|
||||
char buf[64];
|
||||
memcpy( buf, "(Time factor compared to external: ", 35 );
|
||||
char *ptr = &buf[35];
|
||||
ptr = PrintFloat( ptr, buf + sizeof(buf), factor, 3 );
|
||||
memcpy( ptr, ")", 2 );
|
||||
ptr += 23;
|
||||
char buf[128];
|
||||
sprintf(buf, "(this %s %c%s is %.2f%% of external %s %c%s)",
|
||||
ICON_FA_LEMON, tolower( metric[0] ), metric + 1, factor * 100,
|
||||
ICON_FA_GEM, tolower( metric[0] ), metric + 1 );
|
||||
TextDisabledUnformatted( buf );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user