Lines Matching refs:now
6 const testStartTime = performance.now();
25 // performance.timeOrigin and performance.now() are in reasonable range.
28 const uptime1 = Date.now() - performance.timeOrigin;
29 const uptime2 = performance.now();
32 `Date.now() - performance.timeOrigin (${uptime1}) - ` +
33 `performance.now() (${uptime2}) = ` +
36 `Date.now() - performance.timeOrigin (${uptime1}) - ` +
91 // Calculate the difference between now() and duration as soon as possible.
92 const now = performance.now();
93 const delta = Math.abs(now - timing.duration);
101 // performance.now() i.e. measures Node.js instance up time.
105 `now (${now}) - timing.duration (${timing.duration}) = ${delta} >= 10`);
142 // performance.now() here.
144 checkValue(timing, 'loopStart', initialTiming.duration, performance.now());
164 performance.now());