MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / loopForDuration

Method loopForDuration

apps/ClientMainloopThread.h:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 template <typename T>
72 void loopForDuration(T duration = boost::chrono::seconds(2)) {
73 typedef boost::chrono::steady_clock clock;
74 auto start = clock::now();
75 do {
76 oneLoop();
77 } while (clock::now() - start < duration);
78 }
79
80 ~ClientMainloopThread() {
81 m_run = false;

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected