Home
last modified time | relevance | path

Searched refs:Duration2 (Results 1 – 10 of 10) sorted by relevance

/external/libcxx/test/std/utilities/time/time.point/time.point.nonmember/
Dop_+.pass.cpp29 typedef std::chrono::microseconds Duration2; in main() typedef
32 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
33 assert(t2.time_since_epoch() == Duration2(3005)); in main()
34 t2 = Duration2(6) + t1; in main()
35 assert(t2.time_since_epoch() == Duration2(3006)); in main()
40 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
41 static_assert(t2.time_since_epoch() == Duration2(3005), ""); in main()
42 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
43 static_assert(t3.time_since_epoch() == Duration2(3006), ""); in main()
Dop_-time_point.pass.cpp25 typedef std::chrono::microseconds Duration2; in main() typedef
28 std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
29 assert((t1 - t2) == Duration2(2995)); in main()
34 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
35 static_assert((t1 - t2) == Duration2(2995), ""); in main()
Dop_-duration.pass.cpp25 typedef std::chrono::microseconds Duration2; in main() typedef
28 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
29 assert(t2.time_since_epoch() == Duration2(2995)); in main()
34 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
35 static_assert(t2.time_since_epoch() == Duration2(2995), ""); in main()
/external/libcxx/test/std/utilities/time/time.point/time.point.cons/
Dconvert.pass.cpp24 typedef std::chrono::milliseconds Duration2; in main() typedef
26 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
32 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
Dconvert.fail.cpp25 typedef std::chrono::microseconds Duration2; in main() typedef
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
/external/libcxx/test/std/utilities/time/time.point/time.point.comparisons/
Dop_equal.pass.cpp29 typedef std::chrono::microseconds Duration2; in main() typedef
31 typedef std::chrono::time_point<Clock, Duration2> T2; in main()
47 T2 t2(Duration2(3000)); in main()
53 T2 t2(Duration2(3001)); in main()
73 constexpr T2 t2(Duration2(3000)); in main()
79 constexpr T2 t2(Duration2(3001)); in main()
Dop_less.pass.cpp37 typedef std::chrono::microseconds Duration2; in main() typedef
39 typedef std::chrono::time_point<Clock, Duration2> T2; in main()
59 T2 t2(Duration2(3000)); in main()
67 T2 t2(Duration2(3001)); in main()
93 constexpr T2 t2(Duration2(3000)); in main()
101 constexpr T2 t2(Duration2(3001)); in main()
Dop_less.fail.cpp41 typedef std::chrono::microseconds Duration2; in main() typedef
43 typedef std::chrono::time_point<Clock2, Duration2> T2; in main()
46 T2 t2(Duration2(3000)); in main()
Dop_equal.fail.cpp33 typedef std::chrono::microseconds Duration2; in main() typedef
35 typedef std::chrono::time_point<Clock2, Duration2> T2; in main()
38 T2 t2(Duration2(3000)); in main()
/external/libcxx/include/
Dchrono118 template <class Duration2>
119 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14
142 template <class Clock, class Duration1, class Duration2>
143 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>;
201 template <class Rep1, class Period1, class Clock, class Duration2>
202 time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
203 operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
207 template <class Clock, class Duration1, class Duration2>
208 typename common_type<Duration1, Duration2>::type
209 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
[all …]