Browse Source

Only print PerformanceCounter statistics on destruction if there were any runs

tags/2021-05-28
ed 5 years ago
parent
commit
e973451a73
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_core/time/juce_PerformanceCounter.cpp

+ 2
- 1
modules/juce_core/time/juce_PerformanceCounter.cpp 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


Loading…
Cancel
Save