net.sf.jour.timer
Class NativeTimer

java.lang.Object
  extended bynet.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

Field Summary
static java.lang.String JOUR_LIB
          The name of the .so or .dll file
static boolean libraryAvailable
           
protected static org.apache.log4j.Logger log
          logger.
static boolean triedToLoadAlredy
           
 
Constructor Summary
NativeTimer()
          Instantiating utility classes does not make sense.
 
Method Summary
static double getTime()
           
 double getTimeCounter()
           
static double getTimeSafe()
           
static boolean isAvalabel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

NativeTimer

public NativeTimer()
Instantiating utility classes does not make sense.

Method Detail

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.