Home > Language Reference > Classes > Timer

Interval Property

Number of milliseconds between two events.

Syntax

Public Property Get Interval() As Long
Public Property Let Interval(ByVal
lInterval As Long)

ParameterDescription
lIntervalInterval duration in milliseconds.

Remarks

The Interval property sets the time interval, in milliseconds, between two successive Timer events. The value specified by the lInterval argument is internally converted into the corresponding number of ticks. The precision of the actual time interval is therefore limited by the TicksPerSecond property.

When the Timer class is instantiated, this property is initialized with the value 1. If you set this to a value of less than or equal to 0, a runtime error occurs.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A