diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-03 10:27:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-04 06:58:11 +0100 |
commit | f2f651a3f33407f94d3cba44e496c3cc00176e30 (patch) | |
tree | d602f80934f0ff3424a3df0ed09f886897736d4e | |
parent | 9ffc768ae012f1cfae39ef7aa93c1ed1dfa52dc7 (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 0bc73c9a..bd4baad8 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 (double)x2; + return 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 (double)x2; + return x2; } const char* format_datetime_to_string(char (&buf)[fm_DATETIME_BUF_SIZE]) |