1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Only print PerformanceCounter statistics on destruction if there were any runs

This commit is contained in:
ed 2019-08-29 11:53:28 +01:00
parent 404455bea9
commit e973451a73

View file

@ -43,7 +43,8 @@ PerformanceCounter::PerformanceCounter (const String& name, int runsPerPrintout,
PerformanceCounter::~PerformanceCounter()
{
printStatistics();
if (stats.numRuns > 0)
printStatistics();
}
PerformanceCounter::Statistics::Statistics() noexcept