All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdsu.util.Timer

java.lang.Object
   |
   +----sdsu.util.Timer

public class Timer
extends Object
Timer measures the wall time (total lapsed-time) between the call to start and stop methods. Note that wall time is not the same as cpu time consumed by a process, particularly in a system that supports the threads on a multi-user system. Java claims time is measuered in milliseconds.

Version:
1.0 11 January 1998
Author:
Roger Whitney (whitney@cs.sdsu.edu)

Constructor Index

 o Timer()

Method Index

 o pause()
Pause the timer.
 o reset()
Reset the timer to zero.
 o start()
Start the timer.
 o stop()
Stop the timer.
 o time()
Return the time measured by the timer.

Constructors

 o Timer
 public Timer()

Methods

 o start
 public void start()
Start the timer.

 o pause
 public void pause()
Pause the timer.

 o stop
 public long stop()
Stop the timer. Return the time measured by the timer.

 o reset
 public void reset()
Reset the timer to zero.

 o time
 public long time()
Return the time measured by the timer.


All Packages  Class Hierarchy  This Package  Previous  Next  Index