MCPcopy Index your code
hub / github.com/nodejs/node / getTime

Function getTime

benchmark/_benchmark_progress.js:17–23  ·  view source on GitHub ↗
(diff)

Source from the content-addressed store, hash-verified

15}
16
17function getTime(diff) {
18 const time = Math.ceil(diff[0] + diff[1] / 1e9);
19 const hours = pad(Math.floor(time / 3600), 2, '0');
20 const minutes = pad(Math.floor((time % 3600) / 60), 2, '0');
21 const seconds = pad((time % 3600) % 60, 2, '0');
22 return `${hours}:${minutes}:${seconds}`;
23}
24
25// A run is an item in the job queue: { binary, filename, iter }
26// A config is an item in the subqueue: { binary, filename, iter, configs }

Callers 1

getProgressMethod · 0.85

Calls 1

padFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…