MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / getSeconds

Function getSeconds

third-party/embreeSrc/common/sys/sysinfo.cpp:506–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504 }
505
506 double getSeconds()
507 {
508 LARGE_INTEGER freq, val;
509 QueryPerformanceFrequency(&freq);
510 QueryPerformanceCounter(&val);
511 return (double)val.QuadPart / (double)freq.QuadPart;
512 }
513
514 void sleepSeconds(double t) {
515 Sleep(DWORD(1000.0*t));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected