TimeSpan.Nanoseconds Property

Definition

Gets the nanoseconds component of the time interval represented by the current TimeSpan structure.

public int Nanoseconds { get; }

Property Value

Remarks

The Nanoseconds property represents whole nanoseconds, whereas the TotalNanoseconds property represents whole and fractional nanoseconds.

Applies to

Продукт Версии
.NET 7, 8, 9