Package com.codeborne.selenide
Class Stopwatch
java.lang.Object
com.codeborne.selenide.Stopwatch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
void
sleep
(long milliseconds) static void
sleepAtLeast
(long milliseconds) Sleep at least given number of milliseconds.
-
Constructor Details
-
Stopwatch
public Stopwatch(long timeoutMs)
-
-
Method Details
-
isTimeoutReached
@CheckReturnValue public boolean isTimeoutReached() -
getElapsedTimeMs
public long getElapsedTimeMs() -
sleep
public void sleep(long milliseconds) -
sleepAtLeast
public static void sleepAtLeast(long milliseconds) Sleep at least given number of milliseconds. DefaultThread.sleep(long)
doesn't guarantee the sleep duration, it can awake earlier.- Parameters:
milliseconds
- the number of milliseconds to sleep
-