Java android.os SystemClock fields, constructors, methods, implement or subclass

Example usage for Java android.os SystemClock fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.os SystemClock.

The text is from its open source code.

Method

longcurrentThreadTimeMillis()
Returns milliseconds running in the current thread.
longelapsedRealtime()
Returns milliseconds since boot, including time spent in sleep.
longelapsedRealtimeNanos()
Returns nanoseconds since boot, including time spent in sleep.
booleansetCurrentTimeMillis(long millis)
Sets the current wall time, in milliseconds.
voidsleep(long ms)
Waits a given number of milliseconds (of uptimeMillis) before returning.
longuptimeMillis()
Returns milliseconds since boot, not counting time spent in deep sleep.