Table of Contents

Class UnityTimeProvider

Namespace
R3
public class UnityTimeProvider : TimeProvider

Inheritance

Inherited Members

Fields

EarlyUpdate

public static readonly TimeProvider EarlyUpdate

Field Value

TimeProvider

EarlyUpdateIgnoreTimeScale

public static readonly TimeProvider EarlyUpdateIgnoreTimeScale

Field Value

TimeProvider

EarlyUpdateRealtime

public static readonly TimeProvider EarlyUpdateRealtime

Field Value

TimeProvider

FixedUpdate

public static readonly TimeProvider FixedUpdate

Field Value

TimeProvider

FixedUpdateIgnoreTimeScale

public static readonly TimeProvider FixedUpdateIgnoreTimeScale

Field Value

TimeProvider

FixedUpdateRealtime

public static readonly TimeProvider FixedUpdateRealtime

Field Value

TimeProvider

Initialization

public static readonly TimeProvider Initialization

Field Value

TimeProvider

InitializationIgnoreTimeScale

public static readonly TimeProvider InitializationIgnoreTimeScale

Field Value

TimeProvider

InitializationRealtime

public static readonly TimeProvider InitializationRealtime

Field Value

TimeProvider

PostLateUpdate

public static readonly TimeProvider PostLateUpdate

Field Value

TimeProvider

PostLateUpdateIgnoreTimeScale

public static readonly TimeProvider PostLateUpdateIgnoreTimeScale

Field Value

TimeProvider

PostLateUpdateRealtime

public static readonly TimeProvider PostLateUpdateRealtime

Field Value

TimeProvider

PreLateUpdate

public static readonly TimeProvider PreLateUpdate

Field Value

TimeProvider

PreLateUpdateIgnoreTimeScale

public static readonly TimeProvider PreLateUpdateIgnoreTimeScale

Field Value

TimeProvider

PreLateUpdateRealtime

public static readonly TimeProvider PreLateUpdateRealtime

Field Value

TimeProvider

PreUpdate

public static readonly TimeProvider PreUpdate

Field Value

TimeProvider

PreUpdateIgnoreTimeScale

public static readonly TimeProvider PreUpdateIgnoreTimeScale

Field Value

TimeProvider

PreUpdateRealtime

public static readonly TimeProvider PreUpdateRealtime

Field Value

TimeProvider

TimeUpdate

public static readonly TimeProvider TimeUpdate

Field Value

TimeProvider

TimeUpdateIgnoreTimeScale

public static readonly TimeProvider TimeUpdateIgnoreTimeScale

Field Value

TimeProvider

TimeUpdateRealtime

public static readonly TimeProvider TimeUpdateRealtime

Field Value

TimeProvider

Update

public static readonly TimeProvider Update

Field Value

TimeProvider

UpdateIgnoreTimeScale

public static readonly TimeProvider UpdateIgnoreTimeScale

Field Value

TimeProvider

UpdateRealtime

public static readonly TimeProvider UpdateRealtime

Field Value

TimeProvider

Methods

CreateTimer(TimerCallback, object, TimeSpan, TimeSpan)

Creates a new System.Threading.ITimer instance, using System.TimeSpan values to measure time intervals.

public override ITimer CreateTimer(TimerCallback callback, object state, TimeSpan dueTime, TimeSpan period)

Parameters

callback TimerCallback

A delegate representing a method to be executed when the timer fires. The method should be reentrant, as it may be invoked simultaneously on two threads if the timer fires again while a previous callback is still being handled.

state object

An object to be passed to the callback. This may be null.

dueTime TimeSpan

The amount of time to delay before callback is invoked. Specify System.Threading.Timeout.InfiniteTimeSpan to prevent the timer from starting. Specify System.TimeSpan.Zero to start the timer immediately.

period TimeSpan

The time interval between invocations of callback. Specify System.Threading.Timeout.InfiniteTimeSpan to disable periodic signaling.

Returns

ITimer

The newly created System.Threading.ITimer instance.

Exceptions

ArgumentNullException

callback is null.

ArgumentOutOfRangeException

The number of milliseconds in the value of dueTime or period is negative and not equal to System.Threading.Timeout.Infinite, or is greater than Int32.MaxValue.

GetTimestamp()

Gets the current high-frequency value designed to measure small time intervals with high accuracy in the timer mechanism.

public override long GetTimestamp()

Returns

long

A long integer representing the high-frequency counter value of the underlying timer mechanism.