it.tidalwave.stopwatch
Class StopWatchStats

Package class diagram package StopWatchStats
java.lang.Object
  extended by it.tidalwave.stopwatch.StopWatchStats
All Implemented Interfaces:
Comparable<StopWatchStats>

public class StopWatchStats
extends Object
implements Comparable<StopWatchStats>

Version:
$Id$
Author:
Fabrizio Giudici
Status: experimental API

Constructor Summary
protected StopWatchStats(String name)
           
 
Method Summary
protected  void addTimeSample(long accumulatedTimeSample, long elapsedTimeSample)
           
 int compareTo(StopWatchStats other)
           
static void dump()
           
 boolean equals(Object obj)
           
static StopWatchStats find(String name)
           
static SortedSet<StopWatchStats> findAllStats()
           
 long getAccumulatedTime()
           
 double getAvgAccumulatedTime()
           
 double getAvgElapsedTime()
           
 long getElapsedTime()
           
 long getMaxAccumulatedTime()
           
 long getMaxElapsedTime()
           
 long getMinAccumulatedTime()
           
 long getMinElapsedTime()
           
 String getName()
           
 int getSampleCount()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopWatchStats

protected StopWatchStats(String name)
Method Detail

find

public static StopWatchStats find(String name)

getAccumulatedTime

public long getAccumulatedTime()

getAvgAccumulatedTime

public double getAvgAccumulatedTime()

getElapsedTime

public long getElapsedTime()

getMaxAccumulatedTime

public long getMaxAccumulatedTime()

getMaxElapsedTime

public long getMaxElapsedTime()

getMinAccumulatedTime

public long getMinAccumulatedTime()

getMinElapsedTime

public long getMinElapsedTime()

getAvgElapsedTime

public double getAvgElapsedTime()

getName

public String getName()

getSampleCount

public int getSampleCount()

addTimeSample

protected void addTimeSample(long accumulatedTimeSample,
                             long elapsedTimeSample)

findAllStats

public static SortedSet<StopWatchStats> findAllStats()

dump

public static void dump()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(StopWatchStats other)
Specified by:
compareTo in interface Comparable<StopWatchStats>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 Tidalwave s.a.s.. All Rights Reserved.