Constructor and Description |
---|
SystemClock() |
Modifier and Type | Method and Description |
---|---|
long |
getMonotonicTimeNanos()
Returns a time value corresponding to a monotonic clock measuring time
in nanoseconds since some unspecified epoch.
|
long |
getRealTimeMillis()
Returns the current real time in milliseconds (measured since the UNIX epoch).
|
public long getRealTimeMillis()
Clock
getRealTimeMillis
in interface Clock
public long getMonotonicTimeNanos()
Clock
getMonotonicTimeNanos
in interface Clock
Copyright © 2015. All rights reserved.