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

Method createDateTimestamp

src/common.ts:682–687  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

680 }
681
682 public createDateTimestamp(): string {
683 const hrUs = this.createPaddedMs(6);
684 const date = new Date();
685 const ret = `[${date.toISOString()}, +${hrUs}ms]`;
686 return ret;
687 }
688
689 private toStringWithRes(res: number) {
690 const diff = process.hrtime.bigint() - this.start + BigInt((10 ** res) / 2);

Callers 4

writeNonBinaryMethod · 0.80
writeBinaryMethod · 0.80
createDateHeaderUsMethod · 0.80
softwareEventMethod · 0.80

Calls 1

createPaddedMsMethod · 0.95

Tested by

no test coverage detected