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 // typedef duration<signed integral type of at least 64 bits, nano> nanoseconds; 12 13 #include <chrono> 14 #include <type_traits> 15 #include <limits> 16 17 #include "test_macros.h" 18 main(int,char **)19int main(int, char**) 20 { 21 typedef std::chrono::nanoseconds D; 22 typedef D::rep Rep; 23 typedef D::period Period; 24 static_assert(std::is_signed<Rep>::value, ""); 25 static_assert(std::is_integral<Rep>::value, ""); 26 static_assert(std::numeric_limits<Rep>::digits >= 63, ""); 27 static_assert((std::is_same<Period, std::nano>::value), ""); 28 29 return 0; 30 } 31