com.hermetica.util3d
Class MicroTimer

java.lang.Object
  |
  +--com.hermetica.util3d.MicroTimer

public class MicroTimer
extends java.lang.Object

This class provides a handy microsecond accurate timer instead of the more inaccurate millisecond timer provided with core Java.

Version:
$Id: MicroTimer.java,v 1.4 1998/02/23 21:27:46 descarte Exp descarte $
Author:
Alligator Descartes

Constructor Summary
MicroTimer()
          Creates a new MicroTimer
 
Method Summary
 long getDelta()
          Returns the time between the start() and stop() calls
 long getFrequency()
          Returns the frequency of the timer
 void start()
          Native method to fetch the starting value of the timer
 void stop()
          Native method to populate the stop value of the timer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MicroTimer

public MicroTimer()
Creates a new MicroTimer
Method Detail

start

public final void start()
Native method to fetch the starting value of the timer

stop

public final void stop()
Native method to populate the stop value of the timer

getDelta

public final long getDelta()
Returns the time between the start() and stop() calls

getFrequency

public final long getFrequency()
Returns the frequency of the timer