refactor: migrate timing to start_timer() utility, standardize on duration_ms
- Extract start_timer() in muse/core/timing.py: captures monotonic t0, returns a zero-arg callable yielding ms elapsed (rounded to 3dp) - Sweep all CLI commands and core modules: replace inline t0/monotonic patterns with elapsed = start_timer() / elapsed() - Standardize JSON output key as duration_ms across all commands - Add elapsed_ms and exit_code to verify-commit and verify-object JSON - Delete dead provenance_payload_v1 (unreachable code) - Fix 20 syntax errors introduced by first migration pass (keyword arg corruption, misplaced imports, truncated attribute assignments) - Update all test files: elapsed_seconds -> duration_ms, fix negative- assertion tests whose key names were flipped by the rename
sha256:ca26408165d37e8c4f758f027e7be38aff723217406329d09a232de42e0e3f7d
sha
sha256:2e0be062e59b29b5a673538a54710c3496f4a57e13ad29869232aa27fdb4827b
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:ca26408165d37e8c4f758f027e7be38aff723217406329d09a232de42e0e3f7d --body "your comment"
No comments yet. Be the first to start the discussion.