SystemClock

Class of android.os · SystemClock.java · Android's reference

public final class SystemClock

Android's clocks, on the host's monotonic clock. Deep sleep never happens: uptime and elapsed time are one.

Methods

public static long uptimeMillis() source
public static long uptimeNanos() source
public static long elapsedRealtime() source
public static long elapsedRealtimeNanos() source
public static long currentThreadTimeMillis() source
public static long currentThreadTimeMicro() source
public static long currentTimeMicro() source
public static boolean setCurrentTimeMillis(long millis) source
public static java.time.Clock currentNetworkTimeClock() source
public static java.time.Clock currentGnssTimeClock() source
public static void sleep(long ms) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.