TimeSpan.TotalNanoseconds Property

Definition

Gets the value of the current TimeSpan structure expressed in whole and fractional nanoseconds.

C#
public double TotalNanoseconds { get; }

Property Value

Remarks

This property converts the value of this instance from ticks to nanoseconds. This number might include whole and fractional nanoseconds.

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

Applies to

Product Versions
.NET 7, 8, 9, 10