Searched refs:Duration2 (Results 1 – 10 of 10) sorted by relevance
/external/libcxx/test/std/utilities/time/time.point/time.point.nonmember/ |
D | op_+.pass.cpp | 31 typedef std::chrono::microseconds Duration2; in main() typedef 34 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 35 assert(t2.time_since_epoch() == Duration2(3005)); in main() 36 t2 = Duration2(6) + t1; in main() 37 assert(t2.time_since_epoch() == Duration2(3006)); in main() 42 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 43 static_assert(t2.time_since_epoch() == Duration2(3005), ""); in main() 44 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main() 45 static_assert(t3.time_since_epoch() == Duration2(3006), ""); in main()
|
D | op_-time_point.pass.cpp | 27 typedef std::chrono::microseconds Duration2; in main() typedef 30 std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main() 31 assert((t1 - t2) == Duration2(2995)); in main() 36 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main() 37 static_assert((t1 - t2) == Duration2(2995), ""); in main()
|
D | op_-duration.pass.cpp | 38 typedef std::chrono::microseconds Duration2; in main() typedef 41 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main() 42 assert(t2.time_since_epoch() == Duration2(2995)); in main() 47 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main() 48 static_assert(t2.time_since_epoch() == Duration2(2995), ""); in main()
|
/external/libcxx/test/std/utilities/time/time.point/time.point.cons/ |
D | convert.pass.cpp | 26 typedef std::chrono::milliseconds Duration2; in main() typedef 28 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main() 34 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
|
D | convert.fail.cpp | 25 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/ |
D | op_equal.pass.cpp | 31 typedef std::chrono::microseconds Duration2; in main() typedef 33 typedef std::chrono::time_point<Clock, Duration2> T2; in main() 49 T2 t2(Duration2(3000)); in main() 55 T2 t2(Duration2(3001)); in main() 75 constexpr T2 t2(Duration2(3000)); in main() 81 constexpr T2 t2(Duration2(3001)); in main()
|
D | op_less.pass.cpp | 39 typedef std::chrono::microseconds Duration2; in main() typedef 41 typedef std::chrono::time_point<Clock, Duration2> T2; in main() 61 T2 t2(Duration2(3000)); in main() 69 T2 t2(Duration2(3001)); in main() 95 constexpr T2 t2(Duration2(3000)); in main() 103 constexpr T2 t2(Duration2(3001)); in main()
|
D | op_less.fail.cpp | 41 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()
|
D | op_equal.fail.cpp | 33 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/ |
D | chrono | 123 template <class Duration2> 124 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14 147 template <class Clock, class Duration1, class Duration2> 148 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>; 220 template <class Rep1, class Period1, class Clock, class Duration2> 221 time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type> 222 operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs); 226 template <class Clock, class Duration1, class Duration2> 227 typename common_type<Duration1, Duration2>::type 228 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs); [all …]
|