We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c2b508 commit 0a9edb6Copy full SHA for 0a9edb6
core/src/main/java/cucumber/runtime/StopWatch.java
@@ -9,17 +9,17 @@ public interface StopWatch {
9
long stop();
10
11
StopWatch SYSTEM = new StopWatch() {
12
- public Long start;
+ public ThreadLocal<Long> start = new ThreadLocal<Long>();
13
14
@Override
15
public void start() {
16
- start = System.nanoTime();
+ start.set(System.nanoTime());
17
}
18
19
20
public long stop() {
21
- Long duration = System.nanoTime() - start;
22
- start = null;
+ Long duration = System.nanoTime() - start.get();
+ start.set(null);
23
return duration;
24
25
};
0 commit comments