Gin
Public Member Functions | Public Attributes | List of all members
CoalescedTimer Class Reference

Run multiple timers from one juce::Timer per rate. More...

Public Member Functions

 CoalescedTimer ()=default
 
 ~CoalescedTimer ()
 
void startTimer (int ms)
 
void startTimerHz (int hz)
 
void stopTimer ()
 

Public Attributes

std::function< void()> onTimer
 

Detailed Description

Run multiple timers from one juce::Timer per rate.

Constructor & Destructor Documentation

◆ CoalescedTimer()

CoalescedTimer::CoalescedTimer ( )
default

◆ ~CoalescedTimer()

CoalescedTimer::~CoalescedTimer ( )

References stopTimer().

Member Function Documentation

◆ startTimer()

void CoalescedTimer::startTimer ( int  ms)

References stopTimer().

Referenced by startTimerHz().

◆ startTimerHz()

void CoalescedTimer::startTimerHz ( int  hz)

References startTimer(), and stopTimer().

◆ stopTimer()

void CoalescedTimer::stopTimer ( )

Member Data Documentation

◆ onTimer

std::function<void ()> CoalescedTimer::onTimer

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