MCPcopy Create free account
hub / github.com/Marus/cortex-debug / toStringWithRes

Method toStringWithRes

src/common.ts:689–694  ·  view source on GitHub ↗
(res: number)

Source from the content-addressed store, hash-verified

687 }
688
689 private toStringWithRes(res: number) {
690 const diff = process.hrtime.bigint() - this.start + BigInt((10 ** res) / 2);
691 let ret = diff.toString();
692 ret = ret.length <= res ? '0' : ret.substr(0, ret.length - res);
693 return ret;
694 }
695}
696
697// This is not very precise. It is for seeing if the string has any special characters

Callers 2

deltaUsMethod · 0.95
deltaMsMethod · 0.95

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected