Timer Class |
Namespace: SampSharp.GameMode.SAMP
public sealed class Timer : Disposable
The Timer type exposes the following members.
Name | Description | |
---|---|---|
Timer(Double, Boolean) |
Initializes a new instance of the Timer class and starts the timer.
| |
Timer(Int32, Boolean) |
Initializes a new instance of the Timer class and starts the timer.
| |
Timer(TimeSpan, Boolean) |
Initializes a new instance of the Timer class and starts the timer.
| |
Timer(Double, Boolean, Boolean) |
Initializes a new instance of the Timer class.
| |
Timer(Int32, Boolean, Boolean) |
Initializes a new instance of the Timer class.
| |
Timer(TimeSpan, Boolean, Boolean) |
Initializes a new instance of the Timer class.
|
Name | Description | |
---|---|---|
Interval |
Gets or sets the interval of this Timer.
| |
IsDisposed |
Gets whether this resource has been disposed.
(Inherited from Disposable.) | |
IsRepeating |
Gets or sets whether this Timer is repeating.
| |
IsRunning |
Gets or sets whether this Timer is running.
| |
Tag |
Gets or sets a tag containing about this Timer.
|
Name | Description | |
---|---|---|
Dispose |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
OnTick |
Raises the Tick event.
| |
Restart |
Restarts this Timer.
| |
Run(Double, Action) |
Runs the specified action repeatedly with the specified interval.
| |
Run(Int32, Action) |
Runs the specified action repeatedly with the specified interval.
| |
Run(TimeSpan, Action) |
Runs the specified action repeatedly with the specified interval.
| |
RunOnce(Double, Action) |
Runs the specified action once after the specified interval.
| |
RunOnce(Int32, Action) |
Runs the specified action once after the specified interval.
| |
RunOnce(TimeSpan, Action) |
Runs the specified action once after the specified interval.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) | |
Tick |
Occurs when the interval has elapsed.
|