Duration.ToNanos Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.