Skip to content

Commit

Permalink
lib: fix end time after validateNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Sep 12, 2024
1 parent 9cd3d4a commit 4eee320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ class ManagedTimer {
* @param {number} [iterations=1] The amount of iterations that run
*/
end(iterations = 1) {
validateNumber(iterations, 'iterations', 1);
this.endTime = timer.now();
validateNumber(iterations, 'iterations', 1);
this.iterations = iterations;
}

Expand Down

0 comments on commit 4eee320

Please sign in to comment.