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:
parent
404455bea9
commit
e973451a73
1 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ PerformanceCounter::PerformanceCounter (const String& name, int runsPerPrintout,
|
|||
|
||||
PerformanceCounter::~PerformanceCounter()
|
||||
{
|
||||
printStatistics();
|
||||
if (stats.numRuns > 0)
|
||||
printStatistics();
|
||||
}
|
||||
|
||||
PerformanceCounter::Statistics::Statistics() noexcept
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue