diff --git a/MantleAPI/include/MantleAPI/Common/time_utils.h b/MantleAPI/include/MantleAPI/Common/time_utils.h index 17e54f6ec7ba522ddfcea732f603a51c5a9d3b88..73a727229bc06ba53d03d3c1f42ab9a9154ddf9c 100644 --- a/MantleAPI/include/MantleAPI/Common/time_utils.h +++ b/MantleAPI/include/MantleAPI/Common/time_utils.h @@ -28,7 +28,7 @@ using Time = units::time::millisecond_t; template <typename T> inline Time SecondsToTime(T duration) { - return units::convert<units::time::seconds, units::time::milliseconds>(duration); + return units::convert<units::time::seconds, Time>(duration); } /// @brief Converts input @ref Time to [s].