public class StopWatch
extends java.lang.Object
StopWatch timer = new StopWatch("Stopping my process");
// run your process
long elapsedTime = timer.stop();
// elapsedTime now contains the time, your process run. You may print it to a logger instance
log.info("process took " + elapsedTime / 1000 + " seconds");
| Constructor and Description |
|---|
StopWatch(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
pause() |
void |
restart() |
long |
stop()
Method stop
|
java.lang.String |
stop(java.text.DecimalFormat df) |
Copyright © 2018 SAP SE. All Rights Reserved.