OpenShot Library | OpenShotAudio  0.2.1
juce::ScopedTimeMeasurement Class Reference

Simple RAII class for measuring the time spent in a scope. More...

#include <juce_PerformanceCounter.h>

Public Member Functions

 ScopedTimeMeasurement (double &resultInSeconds) noexcept
 

Detailed Description

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
resultInSecondsThe result of the measurement will be stored in this variable.

Definition at line 147 of file juce_PerformanceCounter.h.


The documentation for this class was generated from the following file: