7 pages for durationms.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…lToolUseCount": int, # Number of tool calls the agent made "totalDurationMs": int, # Execution duration in milliseconds "totalTokens": int, # Token count from the final API request, not the…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…modelsUsed?: string[]; totalToolUseCount: number; totalDurationMs: number; totalTokens: number; usage: { input_tokens: number; output_tokens: number;…
Hooks reference
Claude Code CLI · in the page
hooks
…he tokens combined. This isn't a total across the whole run | | `totalDurationMs` | number | `48211` | Wall-clock duration of the subagent run | | `totalToolUseCount` | number | `7` | Count of tool ca…
React to events with a mod
Claude Code CLI · in the page
plugins/mods/events
…where `e.isAborted` is `true`. `e.answer` is Claude's final text, `e.durationMs` how long it took, and `e.usage` the turn's token totals. A subagent's turn fires it with `e.agentId` set. | Observe, o…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
…e agent id | Terminal, Desktop, VS Code | | `TurnDuration` | `word`, `durationMs` | The drawn row's id | Terminal | | `InfoNotice` | `text`, `command` | The notice's `text` prefixed with `notice:` | T…
Test a mod
Claude Code CLI · in the page
plugins/mods/test
…) => ({ text: '' })`. Fire it with `$.turn.complete({ turnId, answer, durationMs, isAborted: false, usage: null })`. | | `prompt.submit` | `($, e) => ({ text: e.text })` | | `prompt.fill` | `() => ({…
Customize your status line
Claude Code CLI · in the page
statusline
…play_name; const cost = data.cost?.total_cost_usd || 0; const durationMs = data.cost?.total_duration_ms || 0; const durationSec = Math.floor(durationMs / 1000); const mins = Math.floo…