OpenTTD Source  14.0-beta3
TimerGameTick Class Reference

Timer that represents the game-ticks. More...

#include <timer_game_tick.h>

Data Structures

struct  TStorage
 

Public Types

using Ticks = int32_t
 The type to store ticks in.
 
using TickCounter = uint64_t
 The type that the tick counter is stored in.
 
using TPeriod = uint
 
using TElapsed = uint
 

Static Public Attributes

static TickCounter counter = 0
 Monotonic counter, in ticks, since start of game.
 

Detailed Description

Timer that represents the game-ticks.

It will pause when the game is paused.

Note
Callbacks are executed in the game-thread.

Definition at line 22 of file timer_game_tick.h.


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