mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display total time.
This commit is contained in:
parent
ffb28a3d0d
commit
6406df6f45
@ -4243,12 +4243,15 @@ void View::DrawFindZone()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int64_t timeTotal = binTime[0];
|
||||||
auto maxVal = bins[0];
|
auto maxVal = bins[0];
|
||||||
for( int i=1; i<numBins; i++ )
|
for( int i=1; i<numBins; i++ )
|
||||||
{
|
{
|
||||||
maxVal = std::max( maxVal, bins[i] );
|
maxVal = std::max( maxVal, bins[i] );
|
||||||
|
timeTotal += binTime[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui::Text( "Total time: %s", TimeToString( timeTotal ) );
|
||||||
ImGui::Text( "Max counts: %s", RealToString( maxVal, true ) );
|
ImGui::Text( "Max counts: %s", RealToString( maxVal, true ) );
|
||||||
|
|
||||||
enum { Height = 200 };
|
enum { Height = 200 };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user