Skip to content

TimerTicks

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

TimerTicks

TimerTicks:Int32 timer:Int32
Parameter Mode Type Default Description
timer In Int32 required A timer from CreateTimer.

Returns: The number of ticks.

Description

Counts how many ticks a timer made since it was created or last reset. Each tick also arrives as a $4001 event, but when the program is busy several ticks are put into one event, so the count is the reliable number.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Timer", 20, 20, 240, 100, Desktop(), 3)
tm = CreateTimer(10)
Repeat
	e = WaitEvent()
	If e = $4001 Then SetGadgetText win, "Ticks " + TimerTicks(tm)
Until e = $803

Related Commands

PauseTimer, ResetTimer, ResumeTimer

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally