{"version":"2.1.248","anchor":"posttooluse-hooks-receive-how-long-the-tool-took","canonical_anchor":"posttooluse-hooks-receive-how-long-the-tool-took","heading":"PostToolUse hooks receive how long the tool took","tier":"use","area":"Hooks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/posttooluse-hooks-receive-how-long-the-tool-took","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### PostToolUse hooks receive how long the tool took\n\nPostToolUse hooks now get duration_ms, the tool's own run time excluding prompts and hooks.\n\n**What**\n\nThe data passed to a PostToolUse hook now includes an optional `duration_ms`, the tool's own execution time. It excludes time spent on permission prompts and on other hooks, so it reflects the tool rather than the wait around it.\n\n**Evidence**\n\n`Tool execution time in milliseconds. Excludes permission-prompt and hook time.`\n\n- Area: Hooks\n- Names: `duration_ms`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5"}