MCPcopy Create free account
hub / github.com/aardappel/treesheets / QueryPerformanceCounter

Function QueryPerformanceCounter

lobster/src/platform.cpp:80–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78};
79
80void QueryPerformanceCounter(LARGE_INTEGER *dst) {
81 struct timeval t;
82 gettimeofday (& t, nullptr);
83 dst->QuadPart = t.tv_sec * 1000000LL + t.tv_usec;
84}
85
86void QueryPerformanceFrequency(LARGE_INTEGER *dst) {
87 dst->QuadPart = 1000000LL;

Callers 2

InitTimeFunction · 0.85
SecondsSinceStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected