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
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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.

@tags{Core}

Definition at line 143 of file juce_PerformanceCounter.h.

Constructor & Destructor Documentation

◆ ScopedTimeMeasurement()

juce::ScopedTimeMeasurement::ScopedTimeMeasurement ( double resultInSeconds)
noexcept

Definition at line 146 of file juce_PerformanceCounter.h.

◆ ~ScopedTimeMeasurement()

juce::ScopedTimeMeasurement::~ScopedTimeMeasurement ( )

Definition at line 152 of file juce_PerformanceCounter.h.


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