MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / GetTime

Function GetTime

include/vglutil.h:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97#ifdef _WIN32
98
99static INLINE double GetTime(void)
100{
101 LARGE_INTEGER frequency, time;
102 if(QueryPerformanceFrequency(&frequency) != 0)
103 {
104 QueryPerformanceCounter(&time);
105 return (double)time.QuadPart / (double)frequency.QuadPart;
106 }
107 else return (double)GetTickCount() * 0.001;
108}
109
110#else
111

Callers 9

glFlushFunction · 0.85
readPixelsMethod · 0.85
rgbBenchFunction · 0.85
displayFunction · 0.85
displayFunction · 0.85
doTestFunction · 0.85
benchmarkFunction · 0.85
doTestFunction · 0.85
displayFunction · 0.85

Calls

no outgoing calls

Tested by 3

doTestFunction · 0.68
benchmarkFunction · 0.68
doTestFunction · 0.68