|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jikesrvm.runtime.Time
public class Time
Primitives from which to build interval and absolute timers.
| Constructor Summary | |
|---|---|
Time()
|
|
| Method Summary | |
|---|---|
static long |
currentTimeMillis()
Time in milliseconds (epoch Jan 1 1970). |
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Time()
| Method Detail |
|---|
public static double nanosToMillis(long c)
c - a time in nanoseconds
public static long cycles()
public static long nanoTime()
public static long currentTimeMillis()
public static double nanosToSecs(long nanos)
public static long secsToNanos(double secs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||