Click or drag to resize

Timer Class

Represents a SA:MP timer.
Inheritance Hierarchy

Namespace:  SampSharp.GameMode.SAMP
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public sealed class Timer : Disposable

The Timer type exposes the following members.

Constructors
  NameDescription
Public methodTimer(Double, Boolean)
Initializes a new instance of the Timer class and starts the timer.
Public methodTimer(Int32, Boolean)
Initializes a new instance of the Timer class and starts the timer.
Public methodTimer(TimeSpan, Boolean)
Initializes a new instance of the Timer class and starts the timer.
Public methodTimer(Double, Boolean, Boolean)
Initializes a new instance of the Timer class.
Public methodTimer(Int32, Boolean, Boolean)
Initializes a new instance of the Timer class.
Public methodTimer(TimeSpan, Boolean, Boolean)
Initializes a new instance of the Timer class.
Top
Properties
  NameDescription
Public propertyInterval
Gets or sets the interval of this Timer.
Public propertyIsDisposed
Gets whether this resource has been disposed.
(Inherited from Disposable.)
Public propertyIsRepeating
Gets or sets whether this Timer is repeating.
Public propertyIsRunning
Gets or sets whether this Timer is running.
Public propertyTag
Gets or sets a tag containing about this Timer.
Top
Methods
  NameDescription
Public methodDispose
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodOnTick
Raises the Tick event.
Public methodRestart
Restarts this Timer.
Public methodStatic memberRun(Double, Action)
Runs the specified action repeatedly with the specified interval.
Public methodStatic memberRun(Int32, Action)
Runs the specified action repeatedly with the specified interval.
Public methodStatic memberRun(TimeSpan, Action)
Runs the specified action repeatedly with the specified interval.
Public methodStatic memberRunOnce(Double, Action)
Runs the specified action once after the specified interval.
Public methodStatic memberRunOnce(Int32, Action)
Runs the specified action once after the specified interval.
Public methodStatic memberRunOnce(TimeSpan, Action)
Runs the specified action once after the specified interval.
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventDisposed
Occurs when this isntance has been disposed.
(Inherited from Disposable.)
Public eventTick
Occurs when the interval has elapsed.
Top
See Also