MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / current_time

Function current_time

extra/yassl/taocrypt/benchmark/benchmark.cpp:429–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 #include <windows.h>
428
429 double current_time()
430 {
431 static bool init(false);
432 static LARGE_INTEGER freq;
433
434 if (!init) {
435 QueryPerformanceFrequency(&freq);
436 init = true;
437 }
438
439 LARGE_INTEGER count;
440 QueryPerformanceCounter(&count);
441
442 return static_cast<double>(count.QuadPart) / freq.QuadPart;
443 }
444
445#else
446

Callers 11

bench_desFunction · 0.85
bench_aesFunction · 0.85
bench_twofishFunction · 0.85
bench_blowfishFunction · 0.85
bench_arc4Function · 0.85
bench_md5Function · 0.85
bench_shaFunction · 0.85
bench_ripemdFunction · 0.85
bench_rsaFunction · 0.85
bench_dhFunction · 0.85
bench_dsaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected