Fix Timestamp class NANOS_TO_SECONDS

This commit is contained in:
2021-03-29 16:41:11 +02:00
parent fb6766558c
commit 665591cb4c

View File

@@ -13,7 +13,7 @@ namespace openVulkanoCpp::Math
class Timestamp final
{
static constexpr uint64_t SECONDS_TO_NANOS = 1'000'000'000ull;
static constexpr double NANOS_TO_SECONDS = 1 / SECONDS_TO_NANOS;
static constexpr double NANOS_TO_SECONDS = 1.0 / SECONDS_TO_NANOS;
uint64_t timestamp;