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

Method wrapTimeStamp

src/gdb.ts:1618–1626  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

1616
1617 protected timeStart = Date.now();
1618 protected wrapTimeStamp(str: string): string {
1619 if (this.args.showDevDebugOutput && this.args.showDevDebugTimestamps) {
1620 const elapsed = Date.now() - this.timeStart;
1621 const elapsedStr = elapsed.toString().padStart(10, '0');
1622 return elapsedStr + ': ' + str;
1623 } else {
1624 return str;
1625 }
1626 }
1627
1628 private serverControllerEvent(event: DebugProtocol.Event) {
1629 this.sendEvent(event);

Callers 1

handleMsgMethod · 0.95

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected