MCPcopy
hub / github.com/continuedev/continue / formatTimestamp

Method formatTimestamp

core/llm/logFormatter.ts:140–154  ·  view source on GitHub ↗
(
    interaction: InteractionData,
    item: LLMInteractionItem,
  )

Source from the content-addressed store, hash-verified

138 }
139
140 private formatTimestamp(
141 interaction: InteractionData,
142 item: LLMInteractionItem,
143 ) {
144 if (item !== this.lastLineStartItem) {
145 if (item === interaction.startItem) {
146 return formatTimestamp(item.timestamp);
147 } else {
148 const delta = (item.timestamp - interaction.startItem.timestamp) / 1000;
149 return ("+" + delta.toFixed(1)).padStart(10, " ");
150 }
151 } else {
152 return " ";
153 }
154 }
155
156 // the implementation behind logLines and logMessageText
157 private logFragment(

Callers 1

logFragmentMethod · 0.95

Calls 1

formatTimestampFunction · 0.70

Tested by

no test coverage detected