Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

resolves #3154

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds elapsed time tracking to the describegpt command to measure how long LLM API calls take. The elapsed time is now included in all output formats (Markdown, TSV, and JSON) alongside existing token usage statistics.

Key Changes

  • Added an elapsed field (in milliseconds) to the TokenUsage struct
  • Implemented timing measurement using Instant::now() around the API request in get_completion()
  • Updated TSV output column names from token_usage_* to token_* for brevity
  • Ensured elapsed time appears consistently across all format functions

@jqnatividad jqnatividad merged commit bfa6750 into master Dec 7, 2025
22 of 23 checks passed
@jqnatividad jqnatividad deleted the 3154-describegpt-token-elapsed branch December 7, 2025 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

describegpt: add elapsed time to token struct

2 participants