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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(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
Returns a string that represents the current object.
(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