public class Timer extends Object
| Modifier and Type | Method and Description |
|---|---|
static Timer |
getInstance() |
static Timer |
getInstance(Level logLevel) |
void |
logResult(String taskInfo)
Log the timing result.
|
void |
startTiming()
Start timing.
|
void |
stopTiming()
Stop timing.
|
public static Timer getInstance()
Timer instance if the TIMING
logging level is FINE, otherwise, return null;public void startTiming()
public void stopTiming()
public void logResult(String taskInfo)
taskInfo - task descriptionCopyright © 2010–2024 JBoss by Red Hat. All rights reserved.