Skip to content

WaitTimer

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

WaitTimer

WaitTimer:Int32 timer:Int32
Parameter Mode Type Default Description
timer In Int32 required The timer handle.

Returns: The number of ticks since the last call, at least 1.

Description

Waits for the next tick of a timer and returns how many ticks went by since the last call, which is 1 when your loop keeps up and more when it fell behind. Do not call it on a timer that is paused.

Examples

timer = CreateTimer(100)
ticks = WaitTimer(timer)
Print ticks >= 1
FreeTimer timer
1

Related Commands

CreateTimer, FreeTimer, Microseconds 〔BlitzLLVM〕, MilliSecs

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally