SampSharp
SampSharp
SampSharp.Entities
TimerSystem Class
TimerSystem Methods
Start Method
Stop Method
Tick Method
TimerSystem
Start Method
Starts a timer with the specified
interval
and
action
.
Namespace:
SampSharp.Entities
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
Copy
public
TimerReference
Start
(
Action
<
IServiceProvider
>
action
,
TimeSpan
interval
)
Parameters
action
Type:
System
Action
IServiceProvider
The action to perform each timer tick.
interval
Type:
System
TimeSpan
The interval at which to tick.
Return Value
Type:
TimerReference
A reference to the started timer.
Implements
ITimerService
Start(Action
IServiceProvider
, TimeSpan)
See Also
Reference
TimerSystem Class
SampSharp.Entities Namespace