MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / sleep_in_seconds

Function sleep_in_seconds

tests/framework/Utils.cpp:38–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace framework
37{
38void sleep_in_seconds(float seconds)
39{
40 // Early return on non-positive input
41 if (seconds <= 0.f)
42 {
43 return;
44 }
45
46#ifndef NO_MULTI_THREADING
47 const int64_t us = static_cast<int64_t>(seconds * 1e6);
48 std::this_thread::sleep_for(std::chrono::microseconds(us));
49#endif /* NO_MULTI_THREADING */
50}
51} // namespace framework
52} // namespace test
53} // namespace arm_compute

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected