public class JProf extends Object
System.currentTimeMillis() is used. Using ThreadMXBean
to get the current thread CPU time, if supported. Using System.nanoTime()
otherwise.| Constructor and Description |
|---|
JProf() |
| Modifier and Type | Method and Description |
|---|---|
static long |
currentTimeMillis()
Current CPU time of this thread in milliseconds
|
static double |
currentTimeSec()
Current CPU time of this thread in seconds
|
public JProf()
public static double currentTimeSec()
public static long currentTimeMillis()