diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-03 09:37:36 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-04 06:58:11 +0100 |
commit | 0961fca16a0d007c58d377a3d246ead08f63de7b (patch) | |
tree | 3980d971bf6622df618906b8b0faa8327ca78341 | |
parent | 4011338e2911f70c426f3981b2afb18e0ebfcead (diff) |
a
-rw-r--r-- | src/timer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timer.cpp b/src/timer.cpp index f67d7324..0bc73c9a 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -51,7 +51,7 @@ double Time::to_seconds(const Ns& ts) noexcept auto x1 = double{ts}; auto x2 = x1 * 1e-9; fm_assert(x2 < double{1 << 24}); - return (float)x2; + return (double)x2; } double Time::to_milliseconds(const Ns& ts) noexcept @@ -59,7 +59,7 @@ double Time::to_milliseconds(const Ns& ts) noexcept auto x1 = double{ts}; auto x2 = x1 * 1e-6; fm_assert(x2 < double{1 << 24}); - return (float)x2; + return (double)x2; } const char* format_datetime_to_string(char (&buf)[fm_DATETIME_BUF_SIZE]) |