Like a race starter pistol — record exact start time before anything moves.
Use time.perf_counter() for high-resolution timing. Start before the API call to capture network + processing latency.
> t_start = 1716574800.123456 (perf_counter) > t_first_token = None > tokens = 0
Like a race starter pistol — record exact start time before anything moves.
Use time.perf_counter() for high-resolution timing. Start before the API call to capture network + processing latency.
> t_start = 1716574800.123456 (perf_counter) > t_first_token = None > tokens = 0
Sign in to cast your vote
Sign in to share your feedback and join the discussion.