MCPcopy Create free account
hub / github.com/apache/singa / SleepMilliseconds

Function SleepMilliseconds

test/gtest/gtest.h:2295–2301  ·  view source on GitHub ↗

Sleeps for (roughly) n milli-seconds. This function is only for testing Google Test's own constructs. Don't use it in user tests, either directly or indirectly.

Source from the content-addressed store, hash-verified

2293// testing Google Test's own constructs. Don't use it in user tests,
2294// either directly or indirectly.
2295inline void SleepMilliseconds(int n) {
2296 const timespec time = {
2297 0, // 0 seconds.
2298 n * 1000L * 1000L, // And n ms.
2299 };
2300 nanosleep(&time, NULL);
2301}
2302
2303// Allows a controller thread to pause execution of newly created
2304// threads until notified. Instances of this class must be created

Callers 1

WaitForNotificationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected