MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_GetTimeInSeconds

Function ovr_GetTimeInSeconds

ReviveXR/REV_CAPI.cpp:1284–1299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282}
1283
1284OVR_PUBLIC_FUNCTION(double) ovr_GetTimeInSeconds()
1285{
1286 REV_TRACE(ovr_GetTimeInSeconds);
1287
1288 static double PerfFrequencyInverse = 0.0;
1289 if (PerfFrequencyInverse == 0.0)
1290 {
1291 LARGE_INTEGER freq;
1292 QueryPerformanceFrequency(&freq);
1293 PerfFrequencyInverse = 1.0 / (double)freq.QuadPart;
1294 }
1295
1296 LARGE_INTEGER li;
1297 QueryPerformanceCounter(&li);
1298 return li.QuadPart * PerfFrequencyInverse;
1299}
1300
1301OVR_PUBLIC_FUNCTION(ovrBool) ovr_GetBool(ovrSession session, const char* propertyName, ovrBool defaultVal)
1302{

Callers 5

LocateViewsMethod · 0.70
GetInputStateMethod · 0.70
GetTrackingStateMethod · 0.70
GetDevicePosesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected