it.tidalwave.stopwatch
Class StopWatchStats
java.lang.Object
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
StopWatchStats
protected StopWatchStats(String name)
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.