MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / SleepMilliseconds

Function SleepMilliseconds

tests/gtest/gtest.h:1431–1437  ·  view source on GitHub ↗

Sleeps for (roughly) n milliseconds. 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

1429// Google Test's own constructs. Don't use it in user tests, either
1430// directly or indirectly.
1431inline void SleepMilliseconds(int n) {
1432 const timespec time = {
1433 0, // 0 seconds.
1434 n * 1000L * 1000L, // And n ms.
1435 };
1436 nanosleep(&time, nullptr);
1437}
1438# endif // GTEST_HAS_PTHREAD
1439
1440# if GTEST_HAS_NOTIFICATION_

Callers 1

WaitForNotificationMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected