OpenTTD Source  20240919-master-gdf0233f4c2
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.


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