MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / wait

Function wait

src/tests/class_tests/openms/source/StopWatch_test.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace OpenMS;
20
21void wait(double seconds)
22{
23 auto start = std::chrono::system_clock::now();
24 while (true)
25 {
26 double s = std::chrono::duration<double>(std::chrono::system_clock::now() - start).count();
27 if (s > seconds) break;
28 };
29}
30
31START_TEST(StopWatch, "$Id$")
32

Callers 1

StopWatch_test.cppFile · 0.85

Calls 1

countMethod · 0.80

Tested by

no test coverage detected