Fixed sign conversion warnings in catch_timer

This commit is contained in:
wmbat 2023-12-05 20:10:24 -05:00
parent 782df1ee92
commit 043dfb2e8e

View File

@ -13,7 +13,8 @@ namespace Catch {
namespace {
static auto getCurrentNanosecondsSinceEpoch() -> uint64_t {
return std::chrono::duration_cast<std::chrono::nanoseconds>(std::chrono::high_resolution_clock::now().time_since_epoch()).count();
return static_cast<uint64_t>(std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::high_resolution_clock::now().time_since_epoch()).count());
}
} // end unnamed namespace