17 #include <gtest/gtest.h> 21 TEST(WalltimeTest, testTimestampOverflow)
23 for (uint64_t start_device_time = 0;
24 start_device_time < (1 << 24);
25 start_device_time += (1 << 23))
29 for (uint64_t device_time = start_device_time;
30 device_time < (1 << 25);
33 const uint32_t device_timestamp = device_time & 0xFFFFFF;
34 ASSERT_EQ(walltime.
update(device_timestamp), device_time);
39 int main(
int argc,
char **argv)
41 testing::InitGoogleTest(&argc, argv);
43 return RUN_ALL_TESTS();
uint64_t update(const uint32_t &time_device)
int main(int argc, char **argv)
TEST(WalltimeTest, testTimestampOverflow)