public class Time extends Object
Constructor and Description |
---|
Time() |
Modifier and Type | Method and 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 Date |
elapsedTimeToDate(long elapsedTime)
This is to convert the elapsedTime to a Date.
|
public static long currentElapsedTime()
public static long currentWallTime()
public static Date elapsedTimeToDate(long elapsedTime)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.