jml.utils
Class Time

java.lang.Object
  extended by jml.utils.Time

public class Time
extends java.lang.Object


Field Summary
private static double t
           
 
Constructor Summary
Time()
           
 
Method Summary
static void pause(double n)
          PAUSE(n) pauses for n seconds before continuing, where n can also be a fraction.
static double tic()
          TSTART = TIC saves the time to an output argument, TSTART.
static double toc()
          Calculate the elapsed time, in seconds, since the most recent execution of the TIC command.
static double toc(double TSTART)
          TOC(TSTART) measures the time elapsed since the TIC command that generated TSTART.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

t

private static double t
Constructor Detail

Time

public Time()
Method Detail

tic

public static double tic()
TSTART = TIC saves the time to an output argument, TSTART. The numeric value of TSTART is only useful as an input argument for a subsequent call to TOC.

Returns:
time, in seconds, when TIC is called

toc

public static double toc()
Calculate the elapsed time, in seconds, since the most recent execution of the TIC command.

Returns:
elapsed time, in seconds, since the most recent execution of the TIC command

toc

public static double toc(double TSTART)
TOC(TSTART) measures the time elapsed since the TIC command that generated TSTART.

Returns:
elapsed time, in seconds, since the TIC command that generated TSTART

pause

public static void pause(double n)
PAUSE(n) pauses for n seconds before continuing, where n can also be a fraction. The resolution of the clock is platform specific. Fractional pauses of 0.01 seconds should be supported on most platforms.

Parameters:
n - time, in seconds, to pause