public class ExecutionTimer extends Object
| Constructor and Description |
|---|
ExecutionTimer()
Creates a new unnamed ExecutionTimer.
|
ExecutionTimer(String aName)
Creates a new ExecutionTimer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
continueExecution(String aKey)
Continues previously stoped(paused) execution of the key.
|
long |
getExecutionTime(String aKey)
Returns the execution time for the given process.
|
List<net.anotheria.util.ExecutionTimer.TimerEntry> |
getExecutionTimerEntriesOrderedByCreation()
Returns a vector with all TimerEntries in this Timer sorted by their creation order.
|
List<net.anotheria.util.ExecutionTimer.TimerEntry> |
getExecutionTimerEntriesOrderedByKeys()
Returns a vector with all TimerEntries in this Timer sorted by their keys.
|
List<net.anotheria.util.ExecutionTimer.TimerEntry> |
getExecutionTimerEntriesOrderedByTime()
Returns a vector with all TimerEntries in this Timer sorted by their execution time (fastest first).
|
long |
getTotalExecutionTime()
Returns the sum of the single execution times.
|
void |
printExecutionTimesOrderedByCreation()
Prints out all timer entries ordered by creation order.
|
void |
printExecutionTimesOrderedByKeys()
Prints out all timer entries ordered by key.
|
void |
printExecutionTimesOrderedByTime()
Prints out all timer entries ordered by execution time (fastest first).
|
void |
startExecution(String aKey)
Notifies timer that the execution of the process assigned with the given key started.
|
void |
stopExecution(String aKey)
Notifies the timer, that the execution of the process assigned with the given key stoped or paused.
|
public ExecutionTimer(String aName)
public ExecutionTimer()
public void startExecution(String aKey)
public void continueExecution(String aKey)
aKey - public void stopExecution(String aKey)
public long getExecutionTime(String aKey)
public long getTotalExecutionTime()
public List<net.anotheria.util.ExecutionTimer.TimerEntry> getExecutionTimerEntriesOrderedByKeys()
public List<net.anotheria.util.ExecutionTimer.TimerEntry> getExecutionTimerEntriesOrderedByCreation()
public List<net.anotheria.util.ExecutionTimer.TimerEntry> getExecutionTimerEntriesOrderedByTime()
public void printExecutionTimesOrderedByTime()
public void printExecutionTimesOrderedByKeys()
public void printExecutionTimesOrderedByCreation()
Copyright © 2010-2014 anotheria.net. All Rights Reserved.