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

Function timeStampsec

examples/sdk_example3/sdk_example3.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#include <windows.h>
43#include <time.h>
44double timeStampsec()
45{
46 static LARGE_INTEGER frequency;
47 if (frequency.QuadPart == 0)
48 QueryPerformanceFrequency(&frequency);
49
50 LARGE_INTEGER now;
51 QueryPerformanceCounter(&now);
52 return now.QuadPart / double(frequency.QuadPart);
53}
54#endif
55
56bool g_bAbortCompression = false; // If set true current compression will abort

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected