//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // time_point // template // time_point // time_point_cast(const time_point& t); // ToDuration shall be an instantiation of duration. #include int main() { typedef std::chrono::system_clock Clock; typedef std::chrono::time_point FromTimePoint; typedef std::chrono::time_point ToTimePoint; std::chrono::time_point_cast(FromTimePoint(std::chrono::milliseconds(3))); }