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

Function ggml_time_init

external/ggml/src/ggml.c:528–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526#if defined(_MSC_VER) || defined(__MINGW32__)
527static int64_t timer_freq, timer_start;
528void ggml_time_init(void) {
529 LARGE_INTEGER t;
530 QueryPerformanceFrequency(&t);
531 timer_freq = t.QuadPart;
532
533 // The multiplication by 1000 or 1000000 below can cause an overflow if timer_freq
534 // and the uptime is high enough.
535 // We subtract the program start time to reduce the likelihood of that happening.
536 QueryPerformanceCounter(&t);
537 timer_start = t.QuadPart;
538}
539int64_t ggml_time_ms(void) {
540 LARGE_INTEGER t;
541 QueryPerformanceCounter(&t);

Callers 15

mainFunction · 0.85
ggml_initFunction · 0.85
ggml_opt_fitFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
test_interpolateFunction · 0.85
mainFunction · 0.85
test_rollFunction · 0.85
test_conv_2d_dwFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 8

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
test_interpolateFunction · 0.68
mainFunction · 0.68
test_rollFunction · 0.68
test_conv_2d_dwFunction · 0.68