gov.sns.xal.model.mpx
Class MPXStopWatch

java.lang.Object
  |
  +--java.util.Date
        |
        +--gov.sns.xal.model.mpx.MPXStopWatch
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

public class MPXStopWatch
extends java.util.Date

A stop watch utility to measure elapsed total time.

See Also:
Serialized Form

Constructor Summary
MPXStopWatch()
           
 
Method Summary
static long getDeltaMsec()
          Time in msec since last call.
static double getDeltaSec()
          Time in seconds since last call.
static void reset()
          Reset the stop watch.
static void reset(boolean quiet)
           
static java.lang.String timeElapsed()
          Elapsed time since last call as string.
static void timeElapsed(java.lang.String message)
           
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MPXStopWatch

public MPXStopWatch()
Method Detail

getDeltaMsec

public static long getDeltaMsec()
Time in msec since last call.

Returns:
time

getDeltaSec

public static double getDeltaSec()
Time in seconds since last call.

Returns:
time

timeElapsed

public static java.lang.String timeElapsed()
Elapsed time since last call as string.

Returns:
time

timeElapsed

public static void timeElapsed(java.lang.String message)

reset

public static void reset()
Reset the stop watch.


reset

public static void reset(boolean quiet)