public class Time
extends java.lang.Object
Constructor | Description |
---|---|
Time() |
Modifier and Type | Method | Description |
---|---|---|
static long |
currentElapsedTime() |
Returns time in milliseconds as does System.currentTimeMillis(),
but uses elapsed time from an arbitrary epoch more like System.nanoTime().
|
static long |
currentWallTime() |
Explicitly returns system dependent current wall time.
|
static java.util.Date |
elapsedTimeToDate(long elapsedTime) |
This is to convert the elapsedTime to a Date.
|
public static long currentElapsedTime()
public static long currentWallTime()
public static java.util.Date elapsedTimeToDate(long elapsedTime)
Copyright © 2018 The Apache Software Foundation