MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / timeStampsec

Function timeStampsec

examples/sdk_example2/sdk_example2.cpp:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53#include <windows.h>
54#include <time.h>
55double timeStampsec()
56{
57 static LARGE_INTEGER frequency;
58 if (frequency.QuadPart == 0)
59 QueryPerformanceFrequency(&frequency);
60
61 LARGE_INTEGER now;
62 QueryPerformanceCounter(&now);
63 return now.QuadPart / double(frequency.QuadPart);
64}
65#endif
66bool g_bAbortCompression = false; // If set true current compression will abort
67

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected