편집

다음을 통해 공유


DispatchTime Constructors

Definition

Overloads

DispatchTime(UInt64)

Creates new DispatchTime instance from nanoseconds

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

public DispatchTime (ulong nanoseconds);
new CoreFoundation.DispatchTime : uint64 -> CoreFoundation.DispatchTime

Parameters

nanoseconds
UInt64

The number of nanosecods.   If the value is positive, the returned milestone is relative.  If the number of nanoseconds is negative, then the milestone is an absolute wall clock time.

Applies to

DispatchTime(DispatchTime, Int64)

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

public DispatchTime (CoreFoundation.DispatchTime when, long deltaNanoseconds);
new CoreFoundation.DispatchTime : CoreFoundation.DispatchTime * int64 -> CoreFoundation.DispatchTime

Parameters

when
DispatchTime

Reference dispatch time.

deltaNanoseconds
Int64

Nanoseconds to add to the dispatch time.

Applies to

DispatchTime(DispatchTime, TimeSpan)

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

public DispatchTime (CoreFoundation.DispatchTime when, TimeSpan delta);
new CoreFoundation.DispatchTime : CoreFoundation.DispatchTime * TimeSpan -> CoreFoundation.DispatchTime

Parameters

when
DispatchTime

Reference dispatch time.

delta
TimeSpan

Timespan to add to the dispatch time.

Applies to