OpenTTD Source 20241224-master-gee860a5c8e
TimerWindow Class Reference

Timer that represents the real time, usable for the Window system. More...

#include <timer_window.h>

Data Structures

struct  TStorage
 

Public Types

using TPeriod = std::chrono::milliseconds
 
using TElapsed = std::chrono::milliseconds
 

Detailed Description

Timer that represents the real time, usable for the Window system.

This can be used to create intervals based on milliseconds, seconds, etc. Mostly used for animation, scrolling, etc.

Please be mindful that the order in which timers are called is not guaranteed.

Note
The lowest possible interval is 1ms.
These timers can only be used in the Window system.

Definition at line 26 of file timer_window.h.

Member Typedef Documentation

◆ TElapsed

using TimerWindow::TElapsed = std::chrono::milliseconds

Definition at line 29 of file timer_window.h.

◆ TPeriod

using TimerWindow::TPeriod = std::chrono::milliseconds

Definition at line 28 of file timer_window.h.


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