Table of Contents

Class TimerServiceExtensions

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

Provides extended methods for ITimerService.

public static class TimerServiceExtensions
Inheritance
TimerServiceExtensions
Inherited Members

Methods

Start(ITimerService, object, MethodInfo, TimeSpan)

Starts a timer with the specified interval. The specified method will be invoked on the specified target each timer tick.

public static TimerReference Start(this ITimerService timerService, object target, MethodInfo method, TimeSpan interval)

Parameters

timerService ITimerService

The timer service.

target object

The target on which to tick.

method MethodInfo

The method to invoke each timer tick.

interval TimeSpan

The interval at which to tick.

Returns

TimerReference

A reference to the started timer.