blob: 53c14f47de697c6bea4dc74e74f2ca0de102e103 [file] [log] [blame]
Marshall Clow223df2e2015-11-05 19:33:59 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// UNSUPPORTED: c++03, c++11, c++14
11// <chrono>
12
13// round
14
15// template <class ToDuration, class Clock, class Duration>
16// time_point<Clock, ToDuration>
17// round(const time_point<Clock, Duration>& t);
18
19// ToDuration shall be an instantiation of duration.
20
21#include <chrono>
22
23int main()
24{
25 std::chrono::round<int>(std::chrono::system_clock::now());
26}