public final class Time extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Time.TimeSource |
Modifier and Type | Method and Description |
---|---|
static long |
absoluteTime()
Returns a timestamp in milliseconds whose origin is at the Unix Epoch.
|
static long |
time()
Returns a timestamp in nanoseconds with an arbitrary origin suitable for
timing purposes.
|
public static long time()
This contract is non-coincidentally reminiscent of
System.nanoTime()
.
public static long absoluteTime()
This contract is non-coincidentally reminiscent of
System.currentTimeMillis()
.
Copyright © 2018. All rights reserved.