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

Method time

include/Timer.h:51–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 double time(void)
52 {
53 #ifdef _WIN32
54
55 if(highRes)
56 {
57 LARGE_INTEGER Time;
58 QueryPerformanceCounter(&Time);
59 return (double)(Time.QuadPart) * tick;
60 }
61 else
62 return (double)GetTickCount() * tick;
63
64 #else
65
66 struct timeval tv;
67 gettimeofday(&tv, (struct timezone *)NULL);
68 return (double)(tv.tv_sec) + (double)(tv.tv_usec) * 0.000001;
69
70 #endif
71 }
72
73 double elapsed(void)
74 {

Callers 2

startFrameMethod · 0.80
endFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected