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

Function getSystemTime

benchmarks/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 1

runBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected