SwiftlyS2

TimerStep

Class TimerStep

Namespace: SwiftlyS2.Shared.Scheduler

Assembly: SwiftlyS2.CS2.dll

public abstract record TimerStep : IEquatable<TimerStep>

Inheritance

Implements

Inherited Members

Methods

Spin()

Spin the timer.

The timer will be executed immediately on next tick.

public static TimerStep Spin()
Returns

Stop()

Stop the timer.

public static TimerStep Stop()
Returns

WaitForMilliseconds(long)

Wait for a number of milliseconds.

public static TimerStep WaitForMilliseconds(long milliseconds)
Parameters
  • milliseconds long — The number of milliseconds to wait.
Returns

WaitForSeconds(float)

Wait for a number of seconds.

public static TimerStep WaitForSeconds(float seconds)
Parameters
  • seconds float — The number of seconds to wait.
Returns

WaitForTicks(long)

Wait for a number of ticks.

public static TimerStep WaitForTicks(long ticks)
Parameters
  • ticks long — The number of ticks to wait.
Returns

On this page