94 void startTimer (
int intervalInMilliseconds)
noexcept;
99 void startTimerHz (
int timerFrequencyHz)
noexcept;
111 void stopTimer() noexcept;
115 bool isTimerRunning() const noexcept {
return timerPeriodMs > 0; }
124 static void JUCE_CALLTYPE callAfterDelay (
int milliseconds, std::function<
void()> functionToCall);
130 static void JUCE_CALLTYPE callPendingTimersSynchronously();
134 friend class TimerThread;
135 size_t positionInQueue = (size_t) -1;
136 int timerPeriodMs = 0;
Makes repeated callbacks to a virtual method at a specified time interval.
int getTimerInterval() const noexcept
Returns the timer's interval.
virtual void timerCallback()=0
The user-defined callback routine that actually gets called periodically.
#define JUCE_API
This macro is added to all JUCE public class declarations.