Home
last modified time | relevance | path

Searched refs:chrono (Results 1 – 25 of 193) sorted by relevance

12345678

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cast/
Dtime_point_cast.pass.cpp26 typedef std::chrono::system_clock Clock; in test()
27 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test()
28 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test()
32 typedef decltype(std::chrono::time_point_cast<ToDuration>(f)) R; in test()
34 assert(std::chrono::time_point_cast<ToDuration>(f) == t); in test()
43 typedef std::chrono::system_clock Clock; in test_constexpr()
44 typedef std::chrono::time_point<Clock, FromDuration> FromTimePoint; in test_constexpr()
45 typedef std::chrono::time_point<Clock, ToDuration> ToTimePoint; in test_constexpr()
49 static_assert(std::chrono::time_point_cast<ToDuration>(f) == t, ""); in test_constexpr()
58 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main()
[all …]
Dtoduration.fail.cpp24 typedef std::chrono::system_clock Clock; in main()
25 typedef std::chrono::time_point<Clock, std::chrono::milliseconds> FromTimePoint; in main()
26 typedef std::chrono::time_point<Clock, std::chrono::minutes> ToTimePoint; in main()
27 std::chrono::time_point_cast<ToTimePoint>(FromTimePoint(std::chrono::milliseconds(3))); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cast/
Dduration_cast.pass.cpp28 typedef decltype(std::chrono::duration_cast<ToDuration>(f)) R; in test()
30 assert(std::chrono::duration_cast<ToDuration>(f) == d); in test()
36 test(std::chrono::milliseconds(7265000), std::chrono::hours(2)); in main()
37 test(std::chrono::milliseconds(7265000), std::chrono::minutes(121)); in main()
38 test(std::chrono::milliseconds(7265000), std::chrono::seconds(7265)); in main()
39 test(std::chrono::milliseconds(7265000), std::chrono::milliseconds(7265000)); in main()
40 test(std::chrono::milliseconds(7265000), std::chrono::microseconds(7265000000LL)); in main()
41 test(std::chrono::milliseconds(7265000), std::chrono::nanoseconds(7265000000000LL)); in main()
42 test(std::chrono::milliseconds(7265000), in main()
43 std::chrono::duration<double, std::ratio<3600> >(7265./3600)); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.nonmember/
Dop_+.pass.cpp24 std::chrono::seconds s1(3); in main()
25 std::chrono::seconds s2(5); in main()
26 std::chrono::seconds r = s1 + s2; in main()
30 std::chrono::seconds s1(3); in main()
31 std::chrono::microseconds s2(5); in main()
32 std::chrono::microseconds r = s1 + s2; in main()
36 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
37 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
38 std::chrono::duration<int, std::ratio<1, 15> > r = s1 + s2; in main()
42 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
[all …]
Dop_-.pass.cpp25 std::chrono::seconds s1(3); in main()
26 std::chrono::seconds s2(5); in main()
27 std::chrono::seconds r = s1 - s2; in main()
31 std::chrono::seconds s1(3); in main()
32 std::chrono::microseconds s2(5); in main()
33 std::chrono::microseconds r = s1 - s2; in main()
37 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
38 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 - s2; in main()
43 std::chrono::duration<int, std::ratio<2, 3> > s1(3); in main()
[all …]
Dop_mod_duration.pass.cpp25 std::chrono::nanoseconds ns1(15); in main()
26 std::chrono::nanoseconds ns2(6); in main()
27 std::chrono::nanoseconds r = ns1 % ns2; in main()
31 std::chrono::microseconds us1(15); in main()
32 std::chrono::nanoseconds ns2(28); in main()
33 std::chrono::nanoseconds r = us1 % ns2; in main()
37 std::chrono::duration<int, std::ratio<3, 5> > s1(6); in main()
38 std::chrono::duration<int, std::ratio<2, 3> > s2(3); in main()
39 std::chrono::duration<int, std::ratio<1, 15> > r = s1 % s2; in main()
44 constexpr std::chrono::nanoseconds ns1(15); in main()
[all …]
Dop_divide_duration.pass.cpp25 std::chrono::nanoseconds ns1(15); in main()
26 std::chrono::nanoseconds ns2(5); in main()
30 std::chrono::microseconds us1(15); in main()
31 std::chrono::nanoseconds ns2(5); in main()
35 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main()
36 std::chrono::duration<int, std::ratio<3, 5> > s2(5); in main()
40 std::chrono::duration<int, std::ratio<2, 3> > s1(30); in main()
41 std::chrono::duration<double, std::ratio<3, 5> > s2(5); in main()
46 constexpr std::chrono::nanoseconds ns1(15); in main()
47 constexpr std::chrono::nanoseconds ns2(5); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.comparisons/
Dop_equal.pass.cpp30 std::chrono::seconds s1(3); in main()
31 std::chrono::seconds s2(3); in main()
36 std::chrono::seconds s1(3); in main()
37 std::chrono::seconds s2(4); in main()
42 std::chrono::milliseconds s1(3); in main()
43 std::chrono::microseconds s2(3000); in main()
48 std::chrono::milliseconds s1(3); in main()
49 std::chrono::microseconds s2(4000); in main()
54 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
55 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
[all …]
Dop_less.pass.cpp40 std::chrono::seconds s1(3); in main()
41 std::chrono::seconds s2(3); in main()
48 std::chrono::seconds s1(3); in main()
49 std::chrono::seconds s2(4); in main()
56 std::chrono::milliseconds s1(3); in main()
57 std::chrono::microseconds s2(3000); in main()
64 std::chrono::milliseconds s1(3); in main()
65 std::chrono::microseconds s2(4000); in main()
72 std::chrono::duration<int, std::ratio<2, 3> > s1(9); in main()
73 std::chrono::duration<int, std::ratio<3, 5> > s2(10); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.specializations/
Dtime_point.pass.cpp24 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 …]
Dduration.pass.cpp30 test<std::chrono::duration<int, std::ratio<1, 100> >, in main()
31 std::chrono::duration<long, std::ratio<1, 1000> >, in main()
32 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
33 test<std::chrono::duration<long, std::ratio<1, 100> >, in main()
34 std::chrono::duration<int, std::ratio<1, 1000> >, in main()
35 std::chrono::duration<long, std::ratio<1, 1000> > >(); in main()
36 test<std::chrono::duration<char, std::ratio<1, 30> >, in main()
37 std::chrono::duration<short, std::ratio<1, 1000> >, in main()
38 std::chrono::duration<int, std::ratio<1, 3000> > >(); in main()
39 test<std::chrono::duration<double, std::ratio<21, 1> >, in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.literals/
Dliterals.pass.cpp22 static_assert ( std::is_same<decltype( 3h ), std::chrono::hours>::value, "" ); in main()
23 static_assert ( std::is_same<decltype( 3min ), std::chrono::minutes>::value, "" ); in main()
24 static_assert ( std::is_same<decltype( 3s ), std::chrono::seconds>::value, "" ); in main()
25 static_assert ( std::is_same<decltype( 3ms ), std::chrono::milliseconds>::value, "" ); in main()
26 static_assert ( std::is_same<decltype( 3us ), std::chrono::microseconds>::value, "" ); in main()
27 static_assert ( std::is_same<decltype( 3ns ), std::chrono::nanoseconds>::value, "" ); in main()
29 std::chrono::hours h = 4h; in main()
30 assert ( h == std::chrono::hours(4)); in main()
34 std::chrono::minutes min = 36min; in main()
35 assert ( min == std::chrono::minutes(36)); in main()
[all …]
Dliterals2.pass.cpp21 std::chrono::hours h = 4h; in main()
22 assert ( h == std::chrono::hours(4)); in main()
26 std::chrono::minutes min = 36min; in main()
27 assert ( min == std::chrono::minutes(36)); in main()
31 std::chrono::seconds s = 24s; in main()
32 assert ( s == std::chrono::seconds(24)); in main()
36 std::chrono::milliseconds ms = 247ms; in main()
37 assert ( ms == std::chrono::milliseconds(247)); in main()
41 std::chrono::microseconds us = 867us; in main()
42 assert ( us == std::chrono::microseconds(867)); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cons/
Dduration.pass.cpp21 typedef std::chrono::system_clock Clock; in main()
22 typedef std::chrono::milliseconds Duration; in main()
24 std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
28 std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); in main()
33 constexpr std::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
37 constexpr std::chrono::time_point<Clock, Duration> t(std::chrono::seconds(3)); in main()
Dconvert.pass.cpp22 typedef std::chrono::system_clock Clock; in main()
23 typedef std::chrono::microseconds Duration1; in main()
24 typedef std::chrono::milliseconds Duration2; in main()
26 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
27 std::chrono::time_point<Clock, Duration1> t1 = t2; in main()
32 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
33 constexpr std::chrono::time_point<Clock, Duration1> t1 = t2; in main()
Dconvert.fail.cpp23 typedef std::chrono::system_clock Clock; in main()
24 typedef std::chrono::milliseconds Duration1; in main()
25 typedef std::chrono::microseconds Duration2; in main()
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
28 std::chrono::time_point<Clock, Duration1> t1 = t2; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.nonmember/
Dop_+.pass.cpp27 typedef std::chrono::system_clock Clock; in main()
28 typedef std::chrono::milliseconds Duration1; in main()
29 typedef std::chrono::microseconds Duration2; in main()
31 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
32 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
39 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
40 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
42 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
Dop_-time_point.pass.cpp23 typedef std::chrono::system_clock Clock; in main()
24 typedef std::chrono::milliseconds Duration1; in main()
25 typedef std::chrono::microseconds Duration2; in main()
27 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
28 std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
33 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
34 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
Dop_-duration.pass.cpp23 typedef std::chrono::system_clock Clock; in main()
24 typedef std::chrono::milliseconds Duration1; in main()
25 typedef std::chrono::microseconds Duration2; in main()
27 std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
28 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
33 constexpr std::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
34 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
Dmax.pass.cpp22 assert(std::chrono::duration_values<int>::max() == in main()
24 assert(std::chrono::duration_values<double>::max() == in main()
26 assert(std::chrono::duration_values<Rep>::max() == in main()
29 static_assert(std::chrono::duration_values<int>::max() == in main()
31 static_assert(std::chrono::duration_values<double>::max() == in main()
33 static_assert(std::chrono::duration_values<Rep>::max() == in main()
Dmin.pass.cpp22 assert(std::chrono::duration_values<int>::min() == in main()
24 assert(std::chrono::duration_values<double>::min() == in main()
26 assert(std::chrono::duration_values<Rep>::min() == in main()
29 static_assert(std::chrono::duration_values<int>::min() == in main()
31 static_assert(std::chrono::duration_values<double>::min() == in main()
33 static_assert(std::chrono::duration_values<Rep>::min() == in main()
Dzero.pass.cpp21 assert(std::chrono::duration_values<int>::zero() == 0); in main()
22 assert(std::chrono::duration_values<Rep>::zero() == 0); in main()
24 static_assert(std::chrono::duration_values<int>::zero() == 0, ""); in main()
25 static_assert(std::chrono::duration_values<Rep>::zero() == 0, ""); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.comparisons/
Dop_equal.fail.cpp30 typedef std::chrono::system_clock Clock1; in main()
32 typedef std::chrono::milliseconds Duration1; in main()
33 typedef std::chrono::microseconds Duration2; in main()
34 typedef std::chrono::time_point<Clock1, Duration1> T1; in main()
35 typedef std::chrono::time_point<Clock2, Duration2> T2; in main()
Dop_less.fail.cpp38 typedef std::chrono::system_clock Clock1; in main()
40 typedef std::chrono::milliseconds Duration1; in main()
41 typedef std::chrono::microseconds Duration2; in main()
42 typedef std::chrono::time_point<Clock1, Duration1> T1; in main()
43 typedef std::chrono::time_point<Clock2, Duration2> T2; in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.cons/
Dconvert_exact.pass.cpp25 std::chrono::milliseconds ms(1); in main()
26 std::chrono::microseconds us = ms; in main()
31 constexpr std::chrono::milliseconds ms(1); in main()
32 constexpr std::chrono::microseconds us = ms; in main()

12345678