public class ThreadBenchmark extends Object
Constructor and Description |
---|
ThreadBenchmark() |
Modifier and Type | Method and Description |
---|---|
double |
getCpuTime()
Returns the total CPU time for the current thread in seconds since this object was created.
|
String |
getMessage() |
double |
getRealTime() |
double |
getUserTime()
Returns the CPU time that the current thread has executed in user mode in seconds.
|
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 String getMessage()
Copyright © 2018 Arno Unkrig. All rights reserved.