net.sf.jour.timer
Class NativeTimer
java.lang.Object
net.sf.jour.timer.NativeTimer
- All Implemented Interfaces:
- Timer
- public class NativeTimer
- extends java.lang.Object
- implements Timer
Use system high-resolution performance counter.
Base on article http://www.javaworld.com/javaworld/javaqa/2003-01/01-qa-0110-timing.html
- Version:
- $Revision: 1.8 $ ($Author: vlads $)
- Author:
- vlads
Constructor Summary |
NativeTimer()
Instantiating utility classes does not make sense. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOUR_LIB
public static final java.lang.String JOUR_LIB
- The name of the .so or .dll file
- See Also:
- Constant Field Values
triedToLoadAlredy
public static boolean triedToLoadAlredy
libraryAvailable
public static boolean libraryAvailable
log
protected static final org.apache.log4j.Logger log
- logger.
NativeTimer
public NativeTimer()
- Instantiating utility classes does not make sense.
getTime
public static double getTime()
- Returns:
- Returns the current high-resolution performance counter in milliseconds.
If the installed hardware does not support a high-resolution performance counter, this value can be zero.
getTimeSafe
public static double getTimeSafe()
getTimeCounter
public double getTimeCounter()
- Specified by:
getTimeCounter
in interface Timer
isAvalabel
public static boolean isAvalabel()
Copyright © 2004 sourceforge. All Rights Reserved.