|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Simple RAII class for measuring the time spent in a scope. More...
#include "juce_PerformanceCounter.h"
Public Member Functions | |
| ScopedTimeMeasurement (double &resultInSeconds) noexcept | |
Simple RAII class for measuring the time spent in a scope.
Example:
{ double timeSec;
{ ScopedTimeMeasurement m (timeSec); doSomething(); }
Logger::writeToLog ("doSomething() took " + String (timeSec) + "seconds"); }
| resultInSeconds | The result of the measurement will be stored in this variable. |
@tags{Core}
Definition at line 143 of file juce_PerformanceCounter.h.
|
noexcept |
Definition at line 146 of file juce_PerformanceCounter.h.
| juce::ScopedTimeMeasurement::~ScopedTimeMeasurement | ( | ) |
Definition at line 152 of file juce_PerformanceCounter.h.