The TrivialClock requirements describe the requirements satisfied by several clocks in the chrono library.
For a type TC:
TC::rep, TC::duration, and TC::time_point satisfy the requirements of EqualityComparable, LessThanComparable, DefaultConstructible, CopyConstructible, CopyAssignable, Destructible, and NumericType. TC::rep, TC::duration, and TC::time_point are Swappable. TC::now() does not throw exceptions. TC::time_point::clock meets the TrivialClock requirements, recursively. The following types in the standard library satisfy these requirements:
std::chrono::system_clock std::chrono::steady_clock std::chrono::high_resolution_clock std::filesystem::file_time_type::clock std::chrono::file_clock
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/named_req/TrivialClock