com.bulletphysics.linearmath
Class Clock

java.lang.Object
  extended by com.bulletphysics.linearmath.Clock

public class Clock
extends Object

Clock is a portable basic clock that measures accurate time in seconds, use for profiling.


Constructor Summary
Clock()
          Creates a new clock and resets it.
 
Method Summary
 long getTimeMicroseconds()
          Returns the time in microseconds since the last call to reset or since the Clock was created.
 long getTimeMilliseconds()
          Returns the time in milliseconds since the last call to reset or since the Clock was created.
 void reset()
          Resets clock by setting start time to current.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clock

public Clock()
Creates a new clock and resets it.

Method Detail

reset

public void reset()
Resets clock by setting start time to current.


getTimeMilliseconds

public long getTimeMilliseconds()
Returns the time in milliseconds since the last call to reset or since the Clock was created.


getTimeMicroseconds

public long getTimeMicroseconds()
Returns the time in microseconds since the last call to reset or since the Clock was created.