Package net.serenitybdd.core.time
Class Stopwatch
java.lang.Object
net.serenitybdd.core.time.Stopwatch
public class Stopwatch
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Stopwatch()
-
Method Summary
Modifier and Type Method Description java.lang.String
executionTimeFormatted()
long
lapTime()
java.lang.String
lapTimeFormatted()
java.lang.String
lapTimeFormatted(java.lang.Long executionTimeInMilliseconds)
void
start()
static Stopwatch
started()
long
stop()
long
stop(java.lang.String message)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Stopwatch
public Stopwatch()
-
-
Method Details
-
started
-
start
public void start() -
stop
public long stop() -
lapTimeFormatted
public java.lang.String lapTimeFormatted() -
executionTimeFormatted
public java.lang.String executionTimeFormatted() -
lapTimeFormatted
public java.lang.String lapTimeFormatted(java.lang.Long executionTimeInMilliseconds) -
lapTime
public long lapTime() -
stop
public long stop(java.lang.String message)
-