mil.navy.nps.dis
Class Timer

java.lang.Object
  extended bymil.navy.nps.dis.Timer

public class Timer
extends java.lang.Object

This Java class provides a simple timer using the system clock converted to seconds.

Version:
1.0
Author:
Scott Heller (http://web.nps.navy.mil/~brutzman) This code includes parts of Kent Watsen's EAI-based World.java/Ownship.java and Don McGregors's testing/BehaviorStreamBufferTest.java
Location:
http://www.web3d.org/WorkingGroups/vrtp/mil/navy/nps/dis/Timer.java
History:
13 December 1998 Scott Heller New

Constructor Summary
Timer()
          Constuctor: Sets the current timer to zero.
 
Method Summary
 float getDuration()
          Returns the number of seconds since the timer was reset.
 void reset()
          Sets the current timer to zero.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Timer

public Timer()
Constuctor: Sets the current timer to zero.

Method Detail

reset

public void reset()
Sets the current timer to zero.


getDuration

public float getDuration()
Returns the number of seconds since the timer was reset.


toString

public java.lang.String toString()