Display execution time minus profiling delay.

This commit is contained in:
Bartosz Taudul 2017-09-24 16:45:22 +02:00
parent 29d5b8d4e9
commit a835e0f121

View File

@ -1058,6 +1058,7 @@ int View::DrawZoneLevel( const Vector<Event*>& vec, bool hover, double pxns, con
ImGui::Text( "%s", func ); ImGui::Text( "%s", func );
ImGui::Text( "%s:%i", GetString( srcFile.filename ), srcFile.line ); ImGui::Text( "%s:%i", GetString( srcFile.filename ), srcFile.line );
ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) ); ImGui::Text( "Execution time: %s", TimeToString( end - ev.start ) );
ImGui::Text( "Without profiling: %s", TimeToString( end - ev.start - m_delay ) );
ImGui::EndTooltip(); ImGui::EndTooltip();
} }