• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2let counter = 0;
3let result;
4const TEST_INTERVALS = parseInt(process.env.TEST_INTERVALS) || 1;
5
6const i = setInterval(function interval() {
7  counter++;
8  if (counter < TEST_INTERVALS) {
9    result = 1;
10  } else {
11    result = process.hrtime();
12    clearInterval(i);
13  }
14}, 100);
15