Skip to content

ResetTimer

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

ResetTimer

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

Description

Sets the tick count of a timer back to 0 and starts counting again from now.

Examples

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

Related Commands

PauseTimer, Proceed, ResumeTimer, TimerTicks

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally