Skip to content
Snippets Groups Projects
Commit 5f8d9aae authored by Jupp Tscheak's avatar Jupp Tscheak
Browse files

Minor fix in function "SecondsToTime" with regard to target type using "Time".


Signed-off-by: default avatarJupp Tscheak <jupp.tscheak@daimler.com>
parent d26d8282
No related branches found
No related tags found
1 merge request!11Replaced the types of all physical quantities related members/arguments with SI unit types as provided by the Units library.
...@@ -28,7 +28,7 @@ using Time = units::time::millisecond_t; ...@@ -28,7 +28,7 @@ using Time = units::time::millisecond_t;
template <typename T> template <typename T>
inline Time SecondsToTime(T duration) 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]. /// @brief Converts input @ref Time to [s].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment