Simple RAII class for measuring the time spent in a scope.
More...
#include <juce_PerformanceCounter.h>
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"); }
- Parameters
-
| resultInSeconds | The result of the measurement will be stored in this variable. |
@tags{Core}
◆ ScopedTimeMeasurement()
| juce::ScopedTimeMeasurement::ScopedTimeMeasurement |
( |
double & |
resultInSeconds | ) |
|
|
inlinenoexcept |
◆ ~ScopedTimeMeasurement()
| juce::ScopedTimeMeasurement::~ScopedTimeMeasurement |
( |
| ) |
|
|
inline |
◆ result
| double& juce::ScopedTimeMeasurement::result |
|
private |
◆ startTimeTicks
The documentation for this class was generated from the following file: