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