public final class StopWatch extends Object
This implementation is not thread safe and can only time one task at any given time.
Constructor and Description |
---|
StopWatch()
Starts the stop watch
|
StopWatch(boolean started)
Creates the stop watch
|
Modifier and Type | Method and Description |
---|---|
void |
restart()
Starts or restarts the stop watch
|
long |
stop()
Stops the stop watch
|
long |
taken()
Returns the time taken in millis.
|
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.