1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 // template <class Clock, class Duration1, class Duration2>
15 // operator< (const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
17 // template <class Clock, class Duration1, class Duration2>
19 // operator> (const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
21 // template <class Clock, class Duration1, class Duration2>
23 // operator<=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
25 // template <class Clock, class Duration1, class Duration2>
27 // operator>=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
29 // time_points with different clocks should not compare
33 #include "../../clock.h"
37 typedef std::chrono::system_clock Clock1
;
39 typedef std::chrono::milliseconds Duration1
;
40 typedef std::chrono::microseconds Duration2
;
41 typedef std::chrono::time_point
<Clock1
, Duration1
> T1
;
42 typedef std::chrono::time_point
<Clock2
, Duration2
> T2
;
45 T2
t2(Duration2(3000));