Modifier and Type | Field and Description |
---|---|
private static long |
bootTime
boot time in milliseconds
|
Constructor and Description |
---|
Time() |
Modifier and Type | Method and Description |
---|---|
static void |
boot() |
static long |
bootTime() |
static long |
currentTimeMillis() |
static long |
cycles()
Return the value of a hardware cycle counter (RDTSC on IA32, time base register on PPC).
|
static double |
nanosToMillis(long c)
Convert a long representing a time in nanoseconds into
a double representing the same time in milliseconds.
|
static double |
nanosToSecs(long nanos) |
static long |
nanoTime()
Same semantics as java.lang.System.nanoTime();
This (or java.lang.System.nanoTime) is the
preferred API for VM internal timing functions.
|
static long |
secsToNanos(double secs) |
private static long bootTime
public Time()
public static void boot()
public static double nanosToMillis(long c)
c
- a time in nanosecondspublic static long cycles()
public static long nanoTime()
public static long currentTimeMillis()
public static double nanosToSecs(long nanos)
public static long secsToNanos(double secs)
public static long bootTime()