MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / log_call_duration

Function log_call_duration

ggml/src/ggml-virtgpu/virtgpu.cpp:533–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533static void log_call_duration(long long call_duration_ns, const char * name) {
534 double call_duration_ms = (double) call_duration_ns / 1e6; // 1 millisecond = 1e6 nanoseconds
535 double call_duration_s = (double) call_duration_ns / 1e9; // 1 second = 1e9 nanoseconds
536
537 if (call_duration_s > 1) {
538 GGML_LOG_INFO(GGML_VIRTGPU "waited %.2fs for the %s host reply...\n", call_duration_s, name);
539 } else if (call_duration_ms > 1) {
540 GGML_LOG_INFO(GGML_VIRTGPU "waited %.2fms for the %s host reply...\n", call_duration_ms, name);
541 } else {
542 GGML_LOG_INFO(GGML_VIRTGPU "waited %lldns for the %s host reply...\n", call_duration_ns, name);
543 }
544}

Callers 2

virtgpu_handshakeFunction · 0.85
virtgpu_load_libraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected