1*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 2*0a6a1f1dSLionel Sambuc // 3*0a6a1f1dSLionel Sambuc // The LLVM Compiler Infrastructure 4*0a6a1f1dSLionel Sambuc // 5*0a6a1f1dSLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open 6*0a6a1f1dSLionel Sambuc // Source Licenses. See LICENSE.TXT for details. 7*0a6a1f1dSLionel Sambuc // 8*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc // <chrono> 11*0a6a1f1dSLionel Sambuc 12*0a6a1f1dSLionel Sambuc // typedef duration<signed integral type of at least 64 bits, nano> nanoseconds; 13*0a6a1f1dSLionel Sambuc 14*0a6a1f1dSLionel Sambuc #include <chrono> 15*0a6a1f1dSLionel Sambuc #include <type_traits> 16*0a6a1f1dSLionel Sambuc #include <limits> 17*0a6a1f1dSLionel Sambuc main()18*0a6a1f1dSLionel Sambucint main() 19*0a6a1f1dSLionel Sambuc { 20*0a6a1f1dSLionel Sambuc typedef std::chrono::nanoseconds D; 21*0a6a1f1dSLionel Sambuc typedef D::rep Rep; 22*0a6a1f1dSLionel Sambuc typedef D::period Period; 23*0a6a1f1dSLionel Sambuc static_assert(std::is_signed<Rep>::value, ""); 24*0a6a1f1dSLionel Sambuc static_assert(std::is_integral<Rep>::value, ""); 25*0a6a1f1dSLionel Sambuc static_assert(std::numeric_limits<Rep>::digits >= 63, ""); 26*0a6a1f1dSLionel Sambuc static_assert((std::is_same<Period, std::nano>::value), ""); 27*0a6a1f1dSLionel Sambuc } 28