This commit is contained in:
momo5502
2025-01-22 15:20:53 +01:00
parent 4300422b77
commit 114d87cd5a
2 changed files with 2 additions and 5 deletions

View File

@@ -290,7 +290,7 @@ bool test_native_exceptions()
void print_time()
{
const auto epoch_time = std::chrono::system_clock::now().time_since_epoch();
printf("Time: %lld\n", epoch_time.count());
printf("Time: %lld\n", std::chrono::duration_cast<std::chrono::nanoseconds>(epoch_time).count());
}
#define RUN_TEST(func, name) \