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

Function fraction

benchmark/_benchmark_progress.js:11–15  ·  view source on GitHub ↗
(numerator, denominator)

Source from the content-addressed store, hash-verified

9}
10
11function fraction(numerator, denominator) {
12 const fdenominator = String(denominator);
13 const fnumerator = pad(numerator, fdenominator.length, ' ');
14 return `${fnumerator}/${fdenominator}`;
15}
16
17function getTime(diff) {
18 const time = Math.ceil(diff[0] + diff[1] / 1e9);

Callers 1

getProgressMethod · 0.85

Calls 2

StringClass · 0.85
padFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…