org.placidus.performance
Class PerformanceObject

java.lang.Object
  extended by org.placidus.performance.PerformanceObject

public class PerformanceObject
extends java.lang.Object

Class to hold performance data, PerformanceStopWatch

Author:
ds

Constructor Summary
PerformanceObject()
           
 
Method Summary
 void clickStopWatch()
          if not yet started, stopwatch will be started.
 boolean isRunning()
           
 boolean isStarted()
           
 long result()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerformanceObject

public PerformanceObject()
Method Detail

clickStopWatch

public void clickStopWatch()
if not yet started, stopwatch will be started. if started average will be taken and saved.


result

public long result()
Returns:
current average time

isStarted

public boolean isStarted()
Returns:
true if started

isRunning

public boolean isRunning()
Returns:
true if running

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
result()


Copyright © 2006 DS. All Rights Reserved.