MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_time_init

Function ggml_time_init

ggml.c:328–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326#if defined(_MSC_VER) || defined(__MINGW32__)
327static int64_t timer_freq, timer_start;
328void ggml_time_init(void) {
329 LARGE_INTEGER t;
330 QueryPerformanceFrequency(&t);
331 timer_freq = t.QuadPart;
332
333 // The multiplication by 1000 or 1000000 below can cause an overflow if timer_freq
334 // and the uptime is high enough.
335 // We subtract the program start time to reduce the likelihood of that happening.
336 QueryPerformanceCounter(&t);
337 timer_start = t.QuadPart;
338}
339int64_t ggml_time_ms(void) {
340 LARGE_INTEGER t;
341 QueryPerformanceCounter(&t);

Callers 7

ggml_initFunction · 0.70
llama_backend_initFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 1

mainFunction · 0.40