C# Class LitDev.LDTimer

Mostrar archivo Open project: litdev1/LitDev

Public Methods

Method 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

Method Description
GetNewTimer ( ) : ObjTimer

Method Details

Add() public static method

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

AddTick() public static method

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.
return Primitive

Interval() public static method

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.
return void

Pause() public static method

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

Resume() public static method

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