mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fixed sign conversion warnings in catch_timer
This commit is contained in:
parent
782df1ee92
commit
043dfb2e8e
@ -13,7 +13,8 @@ namespace Catch {
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
static auto getCurrentNanosecondsSinceEpoch() -> uint64_t {
|
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
|
} // end unnamed namespace
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user