DispatchTime Struct

Definition

Dispatch time and time-out representation.

public struct DispatchTime
type DispatchTime = struct
Inheritance
DispatchTime

Remarks

The DispatchTime class provides a simple mechanism for expressing temporal milestones for use

with dispatch functions that need timeouts or operate on a schedule.

To create an absolute wall time, invoke the DispatchTime constructor with the number of nanoseconds for a particular point in time with a negative time.

Constructors

DispatchTime(DispatchTime, Int64)

Creates a new dispatch time instance based on an existing dispatch time and a nanosecond delta.

DispatchTime(DispatchTime, TimeSpan)

Creates a new dispatch time instance based on an existing dispatch time and a the specified delta.

DispatchTime(UInt64)

Creates new DispatchTime instance from nanoseconds

Fields

Forever

Represents infinity time.

Now

Represents no timeout.

Properties

Nanoseconds

The total number of nanoseconds represented by this instance.

WallTime

Returns a milestone relative to a fixed point in time using the wall clock.

Applies to