الرئيسية > comp > gb > timer 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
Timer (gb)
This class implements a timer object.

A timer object raises events regularly, each time it is triggered. The amount of time between each event is specified by the Delay خصائص.

Symbols
This class is creatable.

الخصائص  الطرق  الأحداث 
 Delay  Enabled   Start  Stop  Trigger   Timer 

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 "Hello Gambas"

END