|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.util.ThreadBenchmark
public class ThreadBenchmark
Measures real time, cpu time and user time for the current thread.
| Constructor Summary | |
|---|---|
ThreadBenchmark()
|
|
| Method Summary | |
|---|---|
double |
getCpuTime()
Returns the total CPU time for the current thread in seconds since this object was created. |
java.lang.String |
getMessage()
|
double |
getRealTime()
|
double |
getUserTime()
Returns the CPU time that the current thread has executed in user mode in seconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadBenchmark()
| Method Detail |
|---|
public double getRealTime()
public double getCpuTime()
The return value is undefined if this object was created by a different thread.
public double getUserTime()
The return value is undefined if this object was created by a different thread.
public java.lang.String getMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||