|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.benchmark.Benchmark
public class Benchmark
A benchmark class to time processes in an application.
| Constructor Summary | |
|---|---|
Benchmark()
|
|
| Method Summary | |
|---|---|
static void |
check()
Check if enough time has elapsed since this method was last called. |
static void |
check(long desiredElapsedTime)
Check if enough time has elapsed since this method was last called. |
static void |
haltOutput()
Prevents smart timers from outputing their values |
static void |
incrementSmartTimer(Object name)
Increment a certain timer by 1. |
static void |
pauseSmartTimer(Object name)
Pause the clock on a certain smart timer |
static void |
resumeOutput()
Resumes output for smart timers |
static void |
setSmartTimerCheckInterval(long value)
Sets the default "time elapsed interval" for the check() method. |
static void |
setSmartTimerDescription(Object timerName,
String description)
Set the description text of a certain smart timer |
static void |
start(String key)
Starts a benchmark with the given key |
static void |
startSmartTimer(Object name)
Start the clock on a certain smart timer |
static long |
stop(String key,
String name)
Stops the benchmark with the given key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Benchmark()
| Method Detail |
|---|
public static void start(String key)
key - the key
public static long stop(String key,
String name)
key - the keyname - the name
public static void setSmartTimerDescription(Object timerName,
String description)
timerName - description - public static void startSmartTimer(Object name)
name - public static void incrementSmartTimer(Object name)
name - public static void pauseSmartTimer(Object name)
name - public static void check()
public static void setSmartTimerCheckInterval(long value)
public static void check(long desiredElapsedTime)
desiredElapsedTime - public static void haltOutput()
public static void resumeOutput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||