public interface Clock
Modifier and Type | Field and Description |
---|---|
static DateFormat |
DEFAULT_DATE_FORMAT |
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).
|
static final DateFormat DEFAULT_DATE_FORMAT
long getRealTimeMillis()
long getMonotonicTimeNanos()
Copyright © 2017. All rights reserved.