JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::AudioProcessLoadMeasurer::ScopedTimer Struct Reference

This class measures the time between its construction and destruction and adds it to an AudioProcessLoadMeasurer. More...

#include <juce_AudioProcessLoadMeasurer.h>

Collaboration diagram for juce::AudioProcessLoadMeasurer::ScopedTimer:

Public Member Functions

 ScopedTimer (AudioProcessLoadMeasurer &)
 
 ~ScopedTimer ()
 

Private Attributes

AudioProcessLoadMeasurerowner
 
double startTime
 

Detailed Description

This class measures the time between its construction and destruction and adds it to an AudioProcessLoadMeasurer.

e.g.

{
AudioProcessLoadMeasurer::ScopedTimer timer (myProcessLoadMeasurer);
myCallback->doTheCallback();
}

Constructor & Destructor Documentation

◆ ScopedTimer()

juce::AudioProcessLoadMeasurer::ScopedTimer::ScopedTimer ( AudioProcessLoadMeasurer )

◆ ~ScopedTimer()

juce::AudioProcessLoadMeasurer::ScopedTimer::~ScopedTimer ( )

Member Data Documentation

◆ owner

AudioProcessLoadMeasurer& juce::AudioProcessLoadMeasurer::ScopedTimer::owner
private

◆ startTime

double juce::AudioProcessLoadMeasurer::ScopedTimer::startTime
private

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