TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.execution.core.timer
Interface IPerformanceTimer

All Known Implementing Classes:
PerformanceTimer

public interface IPerformanceTimer

Performance timer interface for lightweight timer functionality for debug purposes


Method Summary
 void elapsed()
          Calculates and then uses the elapsed time details, average is computed for cases where the nested count is greater than zero
 void elapsed(int size)
          Calculates and then uses the elapsed time details, average is computed for cases where the nested count is greater than zero
 void reset()
          Resets the performance timer attributes of a given performance timer instance
 void start()
          Starts a performance timer task with no task name given, a nested FILO scheme is used, the when the stop method is called the most recently started timer task is stopped
 void start(java.lang.String name)
          Starts a performance timer task with a the given task name used, uses a FILO approach, first timer task started in the last stop in order
 void stop()
          Stops the performance timer task, FILO approach, first timer task started is the last stopped, the performance timer keeps the memory
 

Method Detail

elapsed

void elapsed()
Calculates and then uses the elapsed time details, average is computed for cases where the nested count is greater than zero


elapsed

void elapsed(int size)
Calculates and then uses the elapsed time details, average is computed for cases where the nested count is greater than zero

Parameters:
size - the size of the work completed within the elapsed time, the elapsed time will be divided by this number, for an indication of time per work unit

reset

void reset()
Resets the performance timer attributes of a given performance timer instance


start

void start()
Starts a performance timer task with no task name given, a nested FILO scheme is used, the when the stop method is called the most recently started timer task is stopped


start

void start(java.lang.String name)
Starts a performance timer task with a the given task name used, uses a FILO approach, first timer task started in the last stop in order

Parameters:
name - the named timer task to start

stop

void stop()
Stops the performance timer task, FILO approach, first timer task started is the last stopped, the performance timer keeps the memory


TPTP 4.5.0 Platform Project
Public API Specification