www.element4solution.com

e4s.util
Class E4DurationTimer.E4DurationTimerPosition

java.lang.Object
  extended by e4s.util.E4DurationTimer.E4DurationTimerPosition
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
E4DurationTimer

public static class E4DurationTimer.E4DurationTimerPosition
extends java.lang.Object
implements java.lang.Comparable

Position of the Timer, related to the Java source code (class, method and linenumber).


Method Summary
 int compareTo(java.lang.Object obj)
           
 java.lang.String getName()
          Get the name if specified.
 long getNumberOfSamples()
          Get the number of samples run throught
 java.lang.String getPosition()
          Get the position in source code (same syntax as used in StackTraceElements)
 long getTimeAvg()
          Get the average time elapsed.
 long getTimeTotal()
          Get the total time elapsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

getPosition

public java.lang.String getPosition()
Get the position in source code (same syntax as used in StackTraceElements)

Returns:
a string containing the full qualified class name, the method name and the linenumber (if applicable).
See Also:
getName()

getTimeTotal

public long getTimeTotal()
Get the total time elapsed.

Returns:
the time elapsed
See Also:
getTimeAvg()

getTimeAvg

public long getTimeAvg()
Get the average time elapsed.

Returns:
the average time elapsed
See Also:
getTimeTotal(), getNumberOfSamples()

getNumberOfSamples

public long getNumberOfSamples()
Get the number of samples run throught

Returns:
the number of samples
See Also:
getTimeAvg()

getName

public java.lang.String getName()
Get the name if specified.

Returns:
the name of null if no name was specified
See Also:
getPosition()

www.element4solution.com