48 void setFramesPerSecond (
int framesPerSecond);
53 void setSynchroniseToVBlank (
bool syncToVBlank);
70 int getMillisecondsSinceLastUpdate() const noexcept;
76 Time lastUpdateTime =
Time::getCurrentTime();
78 int framesPerSecond = 60;
79 bool useVBlank = false;
82 void timerCallback() override;
A base class for writing simple one-page graphical apps.
int getFrameCounter() const noexcept
Returns the number of times that update() has been called since the component started running.
virtual void update()=0
Called periodically, at the frequency specified by setFramesPerSecond().
The base class for all JUCE user-interface objects.
Holds an absolute date and time.
Makes repeated callbacks to a virtual method at a specified time interval.
Helper class to synchronise Component updates to the vertical blank event of the display that the Com...