| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7773d58 commit 7a9d0fd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -222,7 +222,7 @@ exports.run = function(options, callback) { | |||
| 222 | 222 | return; | |
| 223 | 223 | } | |
| 224 | 224 | ||
| 225 | - const benchmarker_start = process.hrtime(); | ||
| 225 | + const benchmarker_start = process.hrtime.bigint(); | ||
| 226 | 226 | ||
| 227 | 227 | const child = benchmarker.create(options); | |
| 228 | 228 | ||
@@ -233,7 +233,7 @@ exports.run = function(options, callback) { | |||
| 233 | 233 | child.stdout.on('data', (chunk) => stdout += chunk); | |
| 234 | 234 | ||
| 235 | 235 | child.once('close', (code) => { | |
| 236 | - const elapsed = process.hrtime(benchmarker_start); | ||
| 236 | + const benchmark_end = process.hrtime.bigint(); | ||
| 237 | 237 | if (code) { | |
| 238 | 238 | let error_message = `${options.benchmarker} failed with ${code}.`; | |
| 239 | 239 | if (stdout !== '') { | |
@@ -250,6 +250,7 @@ exports.run = function(options, callback) { | |||
| 250 | 250 | return; | |
| 251 | 251 | } | |
| 252 | 252 | ||
| 253 | + const elapsed = benchmark_end - benchmarker_start; | ||
| 253 | 254 | callback(null, code, options.benchmarker, result, elapsed); | |
| 254 | 255 | }); | |
| 255 | 256 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments