Skip to main content

Module message_timestamp

Module message_timestamp 

Source
Expand description

Wall-clock timestamps and turn durations for the final agent response of a turn.

Each completed turn carries one short local-time footer (e.g. · 3:12 PM, optionally · 3:12 PM · 13m 24s) after its final agent message, so the clock marks the turn’s summary point instead of repeating on every intermediate response. Formatting lives here so the TUI transcript, plain CLI output, and future desktop/export surfaces share one shape.

Functions§

current_message_timestamp_footer
Build the footer for the current local time, without an elapsed half.
current_message_timestamp_footer_with_elapsed
Build the footer for the current local time with the measured turn duration appended when the caller has one.
format_message_time
Format a local timestamp the way agent footers display it (3:12 PM).
format_turn_elapsed
Format a turn duration the way footers and outcome lines display it.
message_timestamp_footer
Build the full footer line for a turn’s final agent response (· 3:12 PM, plus · 13m 24s when the caller measured the turn).