mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 04:30:09 -05:00
Add new dashboard item to show elapsed times (closes #2234). Cleanup handling of TimeConversion and add unit testing
This commit is contained in:
@@ -168,7 +168,10 @@ constexpr TimeUnit timeUnitFromString(std::string_view unitName) {
|
||||
}
|
||||
}
|
||||
|
||||
std::pair<double, std::string> simplifyTime(double seconds,
|
||||
std::pair<double, std::string_view> simplifyTime(double seconds,
|
||||
bool forceSingularForm = false);
|
||||
|
||||
std::vector<std::pair<double, std::string_view>> splitTime(double seconds,
|
||||
bool forceSingularForm = false);
|
||||
|
||||
constexpr double convertTime(double t, TimeUnit sourceUnit, TimeUnit destinationUnit) {
|
||||
|
||||
Reference in New Issue
Block a user