mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-09 19:33:22 +00:00
7 lines
317 B
TypeScript
7 lines
317 B
TypeScript
const started = performance.now()
|
|
|
|
export function progress(message: string, details?: Record<string, unknown>) {
|
|
const elapsed = ((performance.now() - started) / 1_000).toFixed(1)
|
|
const suffix = details ? ` ${JSON.stringify(details)}` : ""
|
|
console.error(`[desktop-profile +${elapsed}s] ${message}${suffix}`)
|
|
}
|