diff --git a/MAGE/Utilities/src/system/system_time.cpp b/MAGE/Utilities/src/system/system_time.cpp index 0ee76ad92..1a72bc649 100644 --- a/MAGE/Utilities/src/system/system_time.cpp +++ b/MAGE/Utilities/src/system/system_time.cpp @@ -208,8 +208,10 @@ namespace mage { return {}; } - return { ConvertTimestamp(kernel_mode_ftime), - ConvertTimestamp(user_mode_ftime) }; + return { + ConvertTimestamp(kernel_mode_ftime), + ConvertTimestamp(user_mode_ftime) + }; } /** diff --git a/MAGE/Utilities/src/system/timer.tpp b/MAGE/Utilities/src/system/timer.tpp index 90a20307d..5235e51f6 100644 --- a/MAGE/Utilities/src/system/timer.tpp +++ b/MAGE/Utilities/src/system/timer.tpp @@ -79,8 +79,10 @@ namespace mage { UpdateDeltaTime(); } - return { std::chrono::duration_cast(m_delta_time), - std::chrono::duration_cast(m_total_delta_time) }; + return { + std::chrono::duration_cast< TimeIntervalSeconds >(m_delta_time), + std::chrono::duration_cast< TimeIntervalSeconds >(m_total_delta_time) + }; } template< typename ClockT >