public interface Chronometer
Chronometer permits to measure the time elapsed between two time snapshots.| Modifier and Type | Method and Description |
|---|---|
long |
elapsedTime()
Return the elapsed time measured in nanoseconds since the very start.
|
String |
formatElapsedTime(long millis)
Return the time specified in human readable format.
|
long |
start()
Start the timer.
|
long |
stop()
Stop the timer.
|
long start()
long stop()
long elapsedTime()
String formatElapsedTime(long millis)
millis - The time to format in milliseconds.Copyright © 2017–2019 JBoss by Red Hat. All rights reserved.