|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.razvan.jzx.NativeTimer
public class NativeTimer
Obtain high-resolution timing values using a native hardware timer.
Makes use of a JNI library, if possible; if the library does not exist or is not accessible in the current security context (e.g. Applet), default to returning milliseconds from System.currentTimeMillis().
Constructor Summary | |
---|---|
NativeTimer()
|
Method Summary | |
---|---|
static long |
currentTimeNanos()
Retrieve the current time, in nanoseconds if possible; if not, return the time in milliseconds, by calling System.currentTimeMillis(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeTimer()
Method Detail |
---|
public static final long currentTimeNanos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |