Skip to content

Class: Timer ​

Constructors ​

Constructor ​

ts
new Timer(
   durationSeconds, 
   options, 
   callback
): Timer;

Parameters ​

ParameterType
durationSecondsnumber
optionsTimerOptions
callback() => void

Returns ​

Timer

Methods ​

GetDuration() ​

ts
GetDuration(): number;

Returns ​

number


GetElapsed() ​

ts
GetElapsed(): number;

Returns ​

number


IsCompleted() ​

ts
IsCompleted(): boolean;

Returns ​

boolean


IsRunning() ​

ts
IsRunning(): boolean;

Returns ​

boolean


Reset() ​

ts
Reset(): this;

Returns ​

this


Start() ​

ts
Start(): this;

Returns ​

this


Stop() ​

ts
Stop(): this;

Returns ​

this


Tick() ​

ts
Tick(dt): void;

Parameters ​

ParameterType
dtnumber

Returns ​

void

© 2026 PlayAdGentic