forked from serenity-bdd/serenity-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored wait logic to use distinct values for implicit waits and w…
…ait-for waits.
- Loading branch information
Showing
43 changed files
with
651 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tybdd/core/pages/InternalSystemClock.java → ...itybdd/core/time/InternalSystemClock.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
core/src/main/java/net/serenitybdd/core/time/Stopwatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package net.serenitybdd.core.time; | ||
|
||
/** | ||
* Created by john on 14/03/15. | ||
*/ | ||
public class Stopwatch { | ||
|
||
public static Stopwatch SYSTEM = new Stopwatch(); | ||
long counter = 0; | ||
|
||
public void start() { | ||
counter = System.currentTimeMillis(); | ||
} | ||
|
||
public long stop() { | ||
long result = System.currentTimeMillis() - counter; | ||
counter = 0; | ||
return result; | ||
} | ||
|
||
} |
Oops, something went wrong.