JUCE  v6.1.6 (6.0.8-1114)
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 (AudioProcessLoadMeasurer &, int numSamplesInBlock)
 
 ~ScopedTimer ()
 

Private Attributes

AudioProcessLoadMeasurerowner
 
int samplesInBlock
 
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();
}

@tags{Audio}

Constructor & Destructor Documentation

◆ ScopedTimer() [1/2]

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

◆ ScopedTimer() [2/2]

juce::AudioProcessLoadMeasurer::ScopedTimer::ScopedTimer ( AudioProcessLoadMeasurer ,
int  numSamplesInBlock 
)

◆ ~ScopedTimer()

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

Member Data Documentation

◆ owner

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

◆ samplesInBlock

int juce::AudioProcessLoadMeasurer::ScopedTimer::samplesInBlock
private

◆ startTime

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

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