Timer (gb)
This class implements a timer object.
A timer object raises events, each time it is triggered.
The amount of time between each event is specified by the Delay property.
This class is .
Properties
|
Methods
|
Events
|
|
|
|
|
Example
This example demonstrates the usage of the Timer in a Console program.
' Gambas module file
Public hConsoleTimer As Timer
Public Sub Main()
hConsoleTimer = New Timer As "MyTimer"
hConsoleTimer.Delay = 1000
hConsoleTimer.Enabled = True
End
Public Sub MyTimer_Timer()
Print CInt(Timer);; "Hello Gambas"
End
0 Hello Gambas
1 Hello Gambas
2 Hello Gambas
...