C# Class LitDev.LDTimer

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Méthode Description
Add ( ) : Primitive

Create a new timer. All timers created with this method call the event subroutine defned by Tick.

AddTick ( Primitive tick ) : Primitive

Create a new timer. This timer only calls its own event subroutine.

Interval ( Primitive timer, Primitive interval ) : void

Starts or resumes a timer.

Pause ( Primitive timer ) : void

Pauses a timer. Tick events will not be raised.

Resume ( Primitive timer ) : void

Resumes a timer from a paused state. Tick events will now be raised.

Private Methods

Méthode Description
GetNewTimer ( ) : ObjTimer

Method Details

Add() public static méthode

Create a new timer. All timers created with this method call the event subroutine defned by Tick.
public static Add ( ) : Primitive
Résultat Primitive

AddTick() public static méthode

Create a new timer. This timer only calls its own event subroutine.
public static AddTick ( Primitive tick ) : Primitive
tick Primitive The event subroutine for this timer.
Résultat Primitive

Interval() public static méthode

Starts or resumes a timer.
public static Interval ( Primitive timer, Primitive interval ) : void
timer Primitive The timer name.
interval Primitive Sets the interval (in milliseconds) specifying how often the timer should raise the Tick event. This value can range from 10 to 100000000.
Résultat void

Pause() public static méthode

Pauses a timer. Tick events will not be raised.
public static Pause ( Primitive timer ) : void
timer Primitive The timer name.
Résultat void

Resume() public static méthode

Resumes a timer from a paused state. Tick events will now be raised.
public static Resume ( Primitive timer ) : void
timer Primitive The timer name.
Résultat void