Condividi tramite


Duration.ToNanos Method

Definition

Converts this duration to the total length in nanoseconds expressed as a long.

[Android.Runtime.Register("toNanos", "()J", "", ApiSince=26)]
public long ToNanos ();
[<Android.Runtime.Register("toNanos", "()J", "", ApiSince=26)>]
member this.ToNanos : unit -> int64

Returns

the total length of the duration in nanoseconds

Attributes

Remarks

Converts this duration to the total length in nanoseconds expressed as a long.

If this duration is too large to fit in a long nanoseconds, then an exception is thrown.

Java documentation for java.time.Duration.toNanos().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to