mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00: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];
|
||||
for( int i=1; i<numBins; 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 ) );
|
||||
|
||||
enum { Height = 200 };
|
||||
|
Loading…
Reference in New Issue
Block a user