ariba.util.core
Class ChronoWithMemory

java.lang.Object
  extended by ariba.util.core.Chrono
      extended by ariba.util.core.ChronoWithMemory

public class ChronoWithMemory
extends Chrono

Chrono subclass which displayed more information when being printed.


Constructor Summary
ChronoWithMemory(java.lang.String name)
           
ChronoWithMemory(java.lang.String name, Logger logger)
           
ChronoWithMemory(java.lang.String name, Logger logger, int startInfoId, int stopInfoId)
          Creates a new instance of a Chrono timer.
 
Method Summary
 void reset()
          Resets the counters to start timing from scratch.
 void start()
          Starts a trial.
 void stop()
          Stops timing the current trial.
 
Methods inherited from class ariba.util.core.Chrono
disable, enable, getAverageSeconds, getTotalSeconds, getTrialCount, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChronoWithMemory

public ChronoWithMemory(java.lang.String name)

ChronoWithMemory

public ChronoWithMemory(java.lang.String name,
                        Logger logger)

ChronoWithMemory

public ChronoWithMemory(java.lang.String name,
                        Logger logger,
                        int startInfoId,
                        int stopInfoId)
Creates a new instance of a Chrono timer.

Parameters:
name - the name of the event. Used to print out the timing summary.
logger - the Logger to use to print debug statements
startInfoId - id of a resource for logging an INFO start message to logger.
stopInfoId - id of a resource for logging an INFO stop message to logger.
Method Detail

reset

public void reset()
Description copied from class: Chrono
Resets the counters to start timing from scratch.

Overrides:
reset in class Chrono

start

public void start()
Description copied from class: Chrono
Starts a trial. Must always be called before Chrono.stop.

Overrides:
start in class Chrono

stop

public void stop()
Description copied from class: Chrono
Stops timing the current trial.

Overrides:
stop in class Chrono


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.