| 4 | |
| 5 | Y_UNIT_TEST_SUITE(TestUptimeSuite) { |
| 6 | Y_UNIT_TEST(TestUptime) { |
| 7 | auto t1 = Uptime(); |
| 8 | Sleep(TDuration::MilliSeconds(50)); // typical uptime resolution is 10-16 ms |
| 9 | auto t2 = Uptime(); |
| 10 | UNIT_ASSERT(t2 > t1); |
| 11 | } |
| 12 | } // Y_UNIT_TEST_SUITE(TestUptimeSuite) |
nothing calls this directly
no test coverage detected