Example usage for Java android.os SystemClock fields, constructors, methods, implement or subclass
The text is from its open source code.
long | currentThreadTimeMillis() Returns milliseconds running in the current thread. |
long | elapsedRealtime() Returns milliseconds since boot, including time spent in sleep. |
long | elapsedRealtimeNanos() Returns nanoseconds since boot, including time spent in sleep. |
boolean | setCurrentTimeMillis(long millis) Sets the current wall time, in milliseconds. |
void | sleep(long ms) Waits a given number of milliseconds (of uptimeMillis) before returning. |
long | uptimeMillis() Returns milliseconds since boot, not counting time spent in deep sleep. |