다음을 통해 공유


SystemClock.UptimeNanos Method

Definition

Returns nanoseconds since boot, not counting time spent in deep sleep.

[Android.Runtime.Register("uptimeNanos", "()J", "", ApiSince=35)]
public static long UptimeNanos ();
[<Android.Runtime.Register("uptimeNanos", "()J", "", ApiSince=35)>]
static member UptimeNanos : unit -> int64

Returns

nanoseconds of non-sleep uptime since boot.

Attributes

Remarks

Returns nanoseconds since boot, not counting time spent in deep sleep.

Java documentation for android.os.SystemClock.uptimeNanos().

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