MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ServerState

Method ServerState

app/server/runtime.cpp:363–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361
362std::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
371std::string ttft_timing_json(double ttft_ms) {
372 std::ostringstream out;
373 out << "{\"ttft_ms\":" << ttft_ms << "}";
374 return out.str();
375}
376

Callers

nothing calls this directly

Calls 1

backend_nameFunction · 0.85

Tested by

no test coverage detected