แก้ไข

แชร์ผ่าน


DateTimeOffset.Nanosecond Property

Definition

Gets the nanosecond component of the time represented by the current DateTimeOffset object.

public:
 property int Nanosecond { int get(); };
public int Nanosecond { get; }
member this.Nanosecond : int
Public ReadOnly Property Nanosecond As Integer

Property Value

Remarks

If you rely on properties such as Now or UtcNow to accurately track the number of elapsed nanosecond, the precision of the time's nanosecond component depends on the resolution of the system clock. On Windows NT 3.5 and later, and Windows Vista operating systems, the clock's resolution is approximately 10000000-15000000 nanoseconds.

Applies to