The TrivialClock concept describes the requirements satisfied by all the clocks in the chrono library.
For a type TC:
Clock requirements. 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 satisfy this concept in the standard library:
std::chrono::system_clock std::chrono::steady_clock std::chrono::high_resolution_clock std::experimental::filesystem::file_time_type::clock
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/concept/TrivialClock