Ardour  9.0-pre0-350-gf17a656217
PBD::WaitTimerRAII Class Reference

#include <timing.h>

Public Member Functions

 WaitTimerRAII (TimingStats &ts)
 
 ~WaitTimerRAII ()
 

Public Attributes

TimingStatsstats
 

Detailed Description

Reverse semantics from TimerRAII. This starts the timer at scope exit, and then updates it (computes interval) at scope entry. This is designed for use with a callback API like CoreAudio, where we want to time the interval between us being done with our work, and when our callback is next executed.

Definition at line 244 of file timing.h.

Constructor & Destructor Documentation

◆ WaitTimerRAII()

PBD::WaitTimerRAII::WaitTimerRAII ( TimingStats ts)
inline

Definition at line 247 of file timing.h.

◆ ~WaitTimerRAII()

PBD::WaitTimerRAII::~WaitTimerRAII ( )
inline

Definition at line 248 of file timing.h.

Member Data Documentation

◆ stats

TimingStats& PBD::WaitTimerRAII::stats

Definition at line 249 of file timing.h.


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