/external/libcxx/test/std/utilities/time/time.cal/time.cal.month/time.cal.month.nonmembers/ |
D | literals.pass.cpp | 36 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::January)); in main() 37 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::February)); in main() 38 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::March)); in main() 39 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::April)); in main() 40 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::May)); in main() 41 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::June)); in main() 42 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::July)); in main() 43 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::August)); in main() 44 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::September)); in main() 45 ASSERT_SAME_TYPE(const std::chrono::month, decltype(std::chrono::October)); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.nonmembers/ |
D | literals.pass.cpp | 31 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Sunday)); in main() 32 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Monday)); in main() 33 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Tuesday)); in main() 34 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Wednesday)); in main() 35 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Thursday)); in main() 36 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Friday)); in main() 37 ASSERT_SAME_TYPE(const std::chrono::weekday, decltype(std::chrono::Saturday)); in main() 39 static_assert( std::chrono::Sunday == std::chrono::weekday(0), ""); in main() 40 static_assert( std::chrono::Monday == std::chrono::weekday(1), ""); in main() 41 static_assert( std::chrono::Tuesday == std::chrono::weekday(2), ""); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.point/time.point.cast/ |
D | time_point_cast.pass.cpp | 28 typedef std::chrono::system_clock Clock; in test() 29 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 30 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 34 typedef decltype(std::chrono::time_point_cast<ToDuration>(f)) R; in test() 36 assert(std::chrono::time_point_cast<ToDuration>(f) == t); in test() 45 typedef std::chrono::system_clock Clock; in test_constexpr() 46 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 47 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 51 static_assert(std::chrono::time_point_cast<ToDuration>(f) == t, ""); in test_constexpr() 60 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main() [all …]
|
D | floor.pass.cpp | 27 typedef std::chrono::system_clock Clock; in test() 28 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::floor<ToDuration>(f)) R; in test() 35 assert(std::chrono::floor<ToDuration>(f) == t); in test() 42 typedef std::chrono::system_clock Clock; in test_constexpr() 43 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 48 static_assert(std::chrono::floor<ToDuration>(f) == t, ""); in test_constexpr() 55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() [all …]
|
D | round.pass.cpp | 27 typedef std::chrono::system_clock Clock; in test() 28 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::round<ToDuration>(f)) R; in test() 35 assert(std::chrono::round<ToDuration>(f) == t); in test() 42 typedef std::chrono::system_clock Clock; in test_constexpr() 43 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 48 static_assert(std::chrono::round<ToDuration>(f) == t, ""); in test_constexpr() 55 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() [all …]
|
D | ceil.pass.cpp | 27 typedef std::chrono::system_clock Clock; in test() 28 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 29 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 33 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test() 35 assert(std::chrono::ceil<ToDuration>(f) == t); in test() 42 typedef std::chrono::system_clock Clock; in test_constexpr() 43 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr() 44 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr() 48 static_assert(std::chrono::ceil<ToDuration>(f) == t, ""); in test_constexpr() 56 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3)); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/ |
D | minus.pass.cpp | 31 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::we… in testConstexprYears() 32 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::years{10}; in testConstexprYears() 34 ym1.year() == std::chrono::year{1234-10} in testConstexprYears() 35 && ym1.month() == std::chrono::January in testConstexprYears() 36 && ym1.weekday() == std::chrono::Tuesday in testConstexprYears() 43 …std::chrono::year_month_weekday ym0{std::chrono::year{1234}, std::chrono::November, std::chrono::w… in testConstexprMonths() 44 std::chrono::year_month_weekday ym1 = ym0 - std::chrono::months{6}; in testConstexprMonths() 46 ym1.year() == std::chrono::year{1234} in testConstexprMonths() 47 && ym1.month() == std::chrono::May in testConstexprMonths() 48 && ym1.weekday() == std::chrono::Tuesday in testConstexprMonths() [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.cast/ |
D | duration_cast.pass.cpp | 30 typedef decltype(std::chrono::duration_cast<ToDuration>(f)) R; in test() 32 assert(std::chrono::duration_cast<ToDuration>(f) == d); in test() 38 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main() 39 test(std::chrono::milliseconds(7265000), std::chrono::minutes(121)); in main() 40 test(std::chrono::milliseconds(7265000), std::chrono::seconds(7265)); in main() 41 test(std::chrono::milliseconds(7265000), std::chrono::milliseconds(7265000)); in main() 42 test(std::chrono::milliseconds(7265000), std::chrono::microseconds(7265000000LL)); in main() 43 test(std::chrono::milliseconds(7265000), std::chrono::nanoseconds(7265000000000LL)); in main() 44 test(std::chrono::milliseconds(7265000), in main() 45 std::chrono::duration<double, std::ratio<3600> >(7265./3600)); in main() [all …]
|
D | floor.pass.cpp | 29 typedef decltype(std::chrono::floor<ToDuration>(f)) R; in test() 31 assert(std::chrono::floor<ToDuration>(f) == d); in test() 38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() 39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-3)); in main() 40 test(std::chrono::milliseconds( 7290000), std::chrono::minutes( 121)); in main() 41 test(std::chrono::milliseconds(-7290000), std::chrono::minutes(-122)); in main() 45 …constexpr std::chrono::hours h1 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds… in main() 47 …constexpr std::chrono::hours h2 = std::chrono::floor<std::chrono::hours>(std::chrono::milliseconds… in main()
|
D | ceil.pass.cpp | 30 typedef decltype(std::chrono::ceil<ToDuration>(f)) R; in test() 32 assert(std::chrono::ceil<ToDuration>(f) == d); in test() 39 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 3)); in main() 40 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main() 41 test(std::chrono::milliseconds( 7290000), std::chrono::minutes( 122)); in main() 42 test(std::chrono::milliseconds(-7290000), std::chrono::minutes(-121)); in main() 46 …constexpr std::chrono::hours h1 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main() 48 …constexpr std::chrono::hours h2 = std::chrono::ceil<std::chrono::hours>(std::chrono::milliseconds(… in main()
|
D | round.pass.cpp | 29 typedef decltype(std::chrono::round<ToDuration>(f)) R; in test() 31 assert(std::chrono::round<ToDuration>(f) == d); in test() 38 test(std::chrono::milliseconds( 7290000), std::chrono::hours( 2)); in main() 39 test(std::chrono::milliseconds(-7290000), std::chrono::hours(-2)); in main() 40 test(std::chrono::milliseconds( 7290000), std::chrono::minutes( 122)); in main() 41 test(std::chrono::milliseconds(-7290000), std::chrono::minutes(-122)); in main() 45 …constexpr std::chrono::hours h1 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds… in main() 47 …constexpr std::chrono::hours h2 = std::chrono::round<std::chrono::hours>(std::chrono::milliseconds… in main()
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.comparisons/ |
D | op_equal.pass.cpp | 32 std::chrono::seconds s1(3); in main() 33 std::chrono::seconds s2(3); in main() 38 std::chrono::seconds s1(3); in main() 39 std::chrono::seconds s2(4); in main() 44 std::chrono::milliseconds s1(3); in main() 45 std::chrono::microseconds s2(3000); in main() 50 std::chrono::milliseconds s1(3); in main() 51 std::chrono::microseconds s2(4000); in main() 56 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 57 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() [all …]
|
D | op_less.pass.cpp | 42 std::chrono::seconds s1(3); in main() 43 std::chrono::seconds s2(3); in main() 50 std::chrono::seconds s1(3); in main() 51 std::chrono::seconds s2(4); in main() 58 std::chrono::milliseconds s1(3); in main() 59 std::chrono::microseconds s2(3000); in main() 66 std::chrono::milliseconds s1(3); in main() 67 std::chrono::microseconds s2(4000); in main() 74 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main() 75 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.nonmember/ |
D | op_-.pass.cpp | 27 std::chrono::seconds s1(3); in main() 28 std::chrono::seconds s2(5); in main() 29 std::chrono::seconds r = s1 - s2; in main() 33 std::chrono::seconds s1(3); in main() 34 std::chrono::microseconds s2(5); in main() 35 std::chrono::microseconds r = s1 - s2; in main() 39 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 40 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 41 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main() 45 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_+.pass.cpp | 26 std::chrono::seconds s1(3); in main() 27 std::chrono::seconds s2(5); in main() 28 std::chrono::seconds r = s1 + s2; in main() 32 std::chrono::seconds s1(3); in main() 33 std::chrono::microseconds s2(5); in main() 34 std::chrono::microseconds r = s1 + s2; in main() 38 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() 39 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 40 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main() 44 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main() [all …]
|
D | op_mod_duration.pass.cpp | 27 std::chrono::nanoseconds ns1(15); in main() 28 std::chrono::nanoseconds ns2(6); in main() 29 std::chrono::nanoseconds r = ns1 % ns2; in main() 33 std::chrono::microseconds us1(15); in main() 34 std::chrono::nanoseconds ns2(28); in main() 35 std::chrono::nanoseconds r = us1 % ns2; in main() 39 std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main() 40 std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main() 41 std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main() 46 constexpr std::chrono::nanoseconds ns1(15); in main() [all …]
|
D | op_divide_duration.pass.cpp | 28 std::chrono::nanoseconds ns1(15); in main() 29 std::chrono::nanoseconds ns2(5); in main() 33 std::chrono::microseconds us1(15); in main() 34 std::chrono::nanoseconds ns2(5); in main() 38 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 39 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main() 43 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main() 44 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main() 49 constexpr std::chrono::nanoseconds ns1(15); in main() 50 constexpr std::chrono::nanoseconds ns2(5); in main() [all …]
|
/external/Reactive-Extensions/RxCpp/Rx/v2/examples/doxygen/ |
D | window.cpp | 41 auto period = std::chrono::milliseconds(4); 42 auto skip = std::chrono::milliseconds(6); 43 …ues = rxcpp::observable<>::interval(std::chrono::steady_clock::now() + std::chrono::milliseconds(1… 62 auto period = std::chrono::milliseconds(4); 63 auto skip = std::chrono::milliseconds(6); 64 …ues = rxcpp::observable<>::interval(std::chrono::steady_clock::now() + std::chrono::milliseconds(1… 82 auto period = std::chrono::milliseconds(6); 83 auto skip = std::chrono::milliseconds(4); 84 …ues = rxcpp::observable<>::interval(std::chrono::steady_clock::now() + std::chrono::milliseconds(1… 102 auto period = std::chrono::milliseconds(2); [all …]
|
D | buffer.cpp | 43 auto period = std::chrono::milliseconds(4); 44 auto skip = std::chrono::milliseconds(6); 45 …ues = rxcpp::observable<>::interval(std::chrono::steady_clock::now() + std::chrono::milliseconds(1… 69 auto period = std::chrono::milliseconds(4); 70 auto skip = std::chrono::milliseconds(6); 71 …ues = rxcpp::observable<>::interval(std::chrono::steady_clock::now() + std::chrono::milliseconds(1… 89 auto period = std::chrono::milliseconds(6); 90 auto skip = std::chrono::milliseconds(4); 91 …ues = rxcpp::observable<>::interval(std::chrono::steady_clock::now() + std::chrono::milliseconds(1… 109 auto period = std::chrono::milliseconds(2); [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.alg/ |
D | abs.pass.cpp | 28 typedef decltype(std::chrono::abs(f)) R; in test() 30 assert(std::chrono::abs(f) == d); in test() 37 test(std::chrono::milliseconds( 7290000), std::chrono::milliseconds( 7290000)); in main() 38 test(std::chrono::milliseconds(-7290000), std::chrono::milliseconds( 7290000)); in main() 39 test(std::chrono::minutes( 122), std::chrono::minutes( 122)); in main() 40 test(std::chrono::minutes(-122), std::chrono::minutes( 122)); in main() 41 test(std::chrono::hours(0), std::chrono::hours(0)); in main() 45 constexpr std::chrono::hours h1 = std::chrono::abs(std::chrono::hours(-3)); in main() 47 constexpr std::chrono::hours h2 = std::chrono::abs(std::chrono::hours(3)); in main()
|
/external/tensorflow/tensorflow/core/grappler/costs/ |
D | cost_estimator.h | 77 struct MilliSeconds : std::chrono::milliseconds { 78 MilliSeconds() : std::chrono::milliseconds(0) {} in MilliSeconds() 79 MilliSeconds(double d) : std::chrono::milliseconds(static_cast<int64>(d)) {} in MilliSeconds() 80 MilliSeconds(const std::chrono::milliseconds& d) in MilliSeconds() 81 : std::chrono::milliseconds(d) {} in MilliSeconds() 82 MilliSeconds& operator=(const std::chrono::milliseconds& d) { 83 std::chrono::milliseconds::operator=(d); 87 struct MicroSeconds : std::chrono::microseconds { 88 MicroSeconds() : std::chrono::microseconds(0) {} in MicroSeconds() 89 MicroSeconds(double d) : std::chrono::microseconds(static_cast<int64>(d)) {} in MicroSeconds() [all …]
|
/external/libcxx/test/std/utilities/time/time.traits/time.traits.specializations/ |
D | time_point.pass.cpp | 24 typedef std::chrono::system_clock C; in test() 25 typedef std::chrono::time_point<C, D1> T1; in test() 26 typedef std::chrono::time_point<C, D2> T2; in test() 27 typedef std::chrono::time_point<C, De> Te; in test() 34 test<std::chrono::duration<int, std::ratio<1, 100> >, in main() 35 std::chrono::duration<long, std::ratio<1, 1000> >, in main() 36 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() 37 test<std::chrono::duration<long, std::ratio<1, 100> >, in main() 38 std::chrono::duration<int, std::ratio<1, 1000> >, in main() 39 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main() [all …]
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.literals/ |
D | literals.pass.cpp | 24 static_assert ( std::is_same<decltype( 3h ), std::chrono::hours>::value, "" ); in main() 25 static_assert ( std::is_same<decltype( 3min ), std::chrono::minutes>::value, "" ); in main() 26 static_assert ( std::is_same<decltype( 3s ), std::chrono::seconds>::value, "" ); in main() 27 static_assert ( std::is_same<decltype( 3ms ), std::chrono::milliseconds>::value, "" ); in main() 28 static_assert ( std::is_same<decltype( 3us ), std::chrono::microseconds>::value, "" ); in main() 29 static_assert ( std::is_same<decltype( 3ns ), std::chrono::nanoseconds>::value, "" ); in main() 31 std::chrono::hours h = 4h; in main() 32 assert ( h == std::chrono::hours(4)); in main() 36 std::chrono::minutes min = 36min; in main() 37 assert ( min == std::chrono::minutes(36)); in main() [all …]
|
/external/catch2/projects/SelfTest/UsageTests/ |
D | ToStringChrono.tests.cpp | 9 auto hour = std::chrono::hours(1); 10 auto minute = std::chrono::minutes(1); 11 auto seconds = std::chrono::seconds(60); 12 auto micro = std::chrono::microseconds(1); 13 auto milli = std::chrono::milliseconds(1); 14 auto nano = std::chrono::nanoseconds(1); 22 std::chrono::duration<int64_t, std::ratio<30>> half_minute(1); 23 std::chrono::duration<int64_t, std::ratio<1, 1000000000000>> pico_second(1); 24 std::chrono::duration<int64_t, std::ratio<1, 1000000000000000>> femto_second(1); 25 std::chrono::duration<int64_t, std::ratio<1, 1000000000000000000>> atto_second(1); [all …]
|
/external/libcxx/test/std/utilities/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ |
D | minus.pass.cpp | 28 …std::chrono::year_month_day ym0{std::chrono::year{1234}, std::chrono::January, std::chrono::day{12… in test_constexpr() 29 std::chrono::year_month_day ym1 = ym0 - std::chrono::years{10}; in test_constexpr() 31 ym1.year() == std::chrono::year{1234-10} in test_constexpr() 32 && ym1.month() == std::chrono::January in test_constexpr() 33 && ym1.day() == std::chrono::day{12} in test_constexpr() 39 using year = std::chrono::year; in main() 40 using month = std::chrono::month; in main() 41 using day = std::chrono::day; in main() 42 using year_month_day = std::chrono::year_month_day; in main() 43 using years = std::chrono::years; in main() [all …]
|