1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 // <chrono> 10 11 // time_point 12 13 // explicit time_point(const duration& d); 14 15 // test for explicit 16 17 #include <chrono> 18 main(int,char **)19int main(int, char**) 20 { 21 typedef std::chrono::system_clock Clock; 22 typedef std::chrono::milliseconds Duration; 23 std::chrono::time_point<Clock, Duration> t = Duration(3); 24 25 return 0; 26 } 27