MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / getSystemTime

Function getSystemTime

tests/common/systemtime.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26SystemTime getSystemTime()
27{
28 LARGE_INTEGER t;
29 CompilerMemBar();
30 if (!QueryPerformanceCounter(&t)) {
31 return static_cast<SystemTime>(-1);
32 }
33 CompilerMemBar();
34
35 return static_cast<SystemTime>(t.QuadPart);
36}
37
38double getTimeDelta(SystemTime start)
39{

Callers 3

run_testFunction · 0.85
runBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by 1

run_testFunction · 0.68