Loading...
Searching...
No Matches
juce::ScopedTimeMeasurement Class Reference

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.

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

Public Member Functions

 ScopedTimeMeasurement (double &resultInSeconds) noexcept
 ~ScopedTimeMeasurement ()

Constructors and Destructors

◆ ScopedTimeMeasurement()

juce::ScopedTimeMeasurement::ScopedTimeMeasurement ( double & resultInSeconds)
inlinenoexcept

◆ ~ScopedTimeMeasurement()

juce::ScopedTimeMeasurement::~ScopedTimeMeasurement ( )
inline
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram