#include "Stroika/Foundation/StroikaPreComp.h"#include <chrono>#include "Stroika/Foundation/Common/Common.h"#include "Clock.inl"Go to the source code of this file.
Classes | |
| struct | Stroika::Foundation::Time::AppStartZeroedClock< BASE_CLOCK_T, DURATION_T > |
Namespaces | |
| namespace | Stroika::Foundation |
Functions | |
| template<typename DESTINATION_CLOCK_T , typename SOURCE_CLOCK_T , typename DURATION_T > | |
| DESTINATION_CLOCK_T::time_point | Stroika::Foundation::Time::clock_cast (chrono::time_point< SOURCE_CLOCK_T, DURATION_T > tp) |
| like std::chrono::clock_cast, but supports steady_clock, and others not explicitly supported by std::chrono::clock_cast (through experiment/approximation), and ranges of time_points... | |
| DESTINATION_CLOCK_T::time_point Stroika::Foundation::Time::clock_cast | ( | chrono::time_point< SOURCE_CLOCK_T, DURATION_T > | tp | ) |
like std::chrono::clock_cast, but supports steady_clock, and others not explicitly supported by std::chrono::clock_cast (through experiment/approximation), and ranges of time_points...
Background: std::chrono::clock_cast is a C++20 standard library function template used to convert a std::chrono::time_point from one clock to another (e.g., system_clock to utc_clock or file_clock).
But - it only supports few cases. This function supports those, but also ALL others by approximating.