Xojo.Core.Timer.Period

From Xojo Documentation

Property (As Integer )
aXojo.Core.Timer.Period = newIntegerValue
or
IntegerValue = aXojo.Core.Timer.Period

Supported for all project types and targets.

Specifies the number of milliseconds between calls to the Action event handler.

Notes

A period of 0 means to start the timer immediately on the next event loop and is useful for creating a Timer that runs as soon as possible. The Period is not precise as system events or blocking code can delay the call to the Action event handler.

Sample Code

Set the period to 1 second:

Timer1.Period = 1000