| 361 | |
| 362 | std::string timing_json(double wall_ms, const engine::runtime::AudioBuffer & audio) { |
| 363 | const double duration_ms = audio_duration_ms(audio); |
| 364 | std::ostringstream out; |
| 365 | out << "{\"wall_ms\":" << wall_ms |
| 366 | << ",\"audio_duration_ms\":" << duration_ms |
| 367 | << ",\"rtf\":" << audio_rtf(wall_ms, duration_ms) << "}"; |
| 368 | return out.str(); |
| 369 | } |
| 370 | |
| 371 | std::string ttft_timing_json(double ttft_ms) { |
| 372 | std::ostringstream out; |
| 373 | out << "{\"ttft_ms\":" << ttft_ms << "}"; |
| 374 | return out.str(); |
| 375 | } |
| 376 |
nothing calls this directly
no test coverage detected