Methods Summary |
---|
static long | currentThreadTimeMicro()Returns microseconds running in the current thread.
return System.currentTimeMillis() * 1000;
|
static long | currentThreadTimeMillis()Returns milliseconds running in the current thread.
return System.currentTimeMillis();
|
static long | currentTimeMicro()Returns current wall time in microseconds.
return elapsedRealtime() * 1000;
|
static long | elapsedRealtime()Returns milliseconds since boot, including time spent in sleep.
return System.currentTimeMillis() - sBootTime;
|
static long | elapsedRealtimeNanos()Returns nanoseconds since boot, including time spent in sleep.
return System.nanoTime() - sBootTimeNano;
|
static long | uptimeMillis()Returns milliseconds since boot, not counting time spent in deep sleep.
Note: This value may get reset occasionally (before it would
otherwise wrap around).
/*package*/
return System.currentTimeMillis() - sBootTime;
|