Home
last modified time | relevance | path

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

12

/external/llvm-project/libcxx/test/std/utilities/time/time.point/time.point.nonmember/
Dop_+.pass.cpp30 typedef std::chrono::microseconds Duration2; in main() typedef
33 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
34 assert(t2.time_since_epoch() == Duration2(3005)); in main()
35 t2 = Duration2(6) + t1; in main()
36 assert(t2.time_since_epoch() == Duration2(3006)); in main()
41 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main()
42 static_assert(t2.time_since_epoch() == Duration2(3005), ""); in main()
43 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main()
44 static_assert(t3.time_since_epoch() == Duration2(3006), ""); in main()
Dop_-time_point.pass.cpp26 typedef std::chrono::microseconds Duration2; in main() typedef
29 std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
30 assert((t1 - t2) == Duration2(2995)); in main()
35 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
36 static_assert((t1 - t2) == Duration2(2995), ""); in main()
Dop_-duration.pass.cpp37 typedef std::chrono::microseconds Duration2; in main() typedef
40 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
41 assert(t2.time_since_epoch() == Duration2(2995)); in main()
46 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
47 static_assert(t2.time_since_epoch() == Duration2(2995), ""); in main()
/external/libcxx/test/std/utilities/time/time.point/time.point.nonmember/
Dop_+.pass.cpp31 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()
Dop_-time_point.pass.cpp27 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()
Dop_-duration.pass.cpp38 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/
Dconvert.pass.cpp26 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()
Dconvert.fail.cpp25 typedef std::chrono::microseconds Duration2; in main() typedef
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
/external/llvm-project/libcxx/test/std/utilities/time/time.point/time.point.cons/
Dconvert.pass.cpp25 typedef std::chrono::milliseconds Duration2; in main() typedef
27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
33 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
Dconvert.compile.fail.cpp24 typedef std::chrono::microseconds Duration2; in main() typedef
26 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.cpp31 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()
Dop_less.pass.cpp39 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()
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()
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()
/external/llvm-project/libcxx/test/std/utilities/time/time.point/time.point.comparisons/
Dop_equal.pass.cpp30 typedef std::chrono::microseconds Duration2; in main() typedef
32 typedef std::chrono::time_point<Clock, Duration2> T2; in main()
48 T2 t2(Duration2(3000)); in main()
54 T2 t2(Duration2(3001)); in main()
74 constexpr T2 t2(Duration2(3000)); in main()
80 constexpr T2 t2(Duration2(3001)); in main()
Dop_less.pass.cpp38 typedef std::chrono::microseconds Duration2; in main() typedef
40 typedef std::chrono::time_point<Clock, Duration2> T2; in main()
60 T2 t2(Duration2(3000)); in main()
68 T2 t2(Duration2(3001)); in main()
94 constexpr T2 t2(Duration2(3000)); in main()
102 constexpr T2 t2(Duration2(3001)); in main()
Dop_equal.compile.fail.cpp32 typedef std::chrono::microseconds Duration2; in main() typedef
34 typedef std::chrono::time_point<Clock2, Duration2> T2; in main()
37 T2 t2(Duration2(3000)); in main()
Dop_less.compile.fail.cpp40 typedef std::chrono::microseconds Duration2; in main() typedef
42 typedef std::chrono::time_point<Clock2, Duration2> T2; in main()
45 T2 t2(Duration2(3000)); in main()
/external/catch2/include/internal/benchmark/
Dcatch_sample_analysis.hpp33 template <typename Duration2>
34 operator SampleAnalysis<Duration2>() const { in operator SampleAnalysis<Duration2>()
35 std::vector<Duration2> samples2; in operator SampleAnalysis<Duration2>()
37 …les.begin(), samples.end(), std::back_inserter(samples2), [](Duration d) { return Duration2(d); }); in operator SampleAnalysis<Duration2>()
Dcatch_estimate.hpp23 template <typename Duration2>
24 operator Estimate<Duration2>() const { in operator Estimate<Duration2>()
Dcatch_environment.hpp24 template <typename Duration2>
25 operator EnvironmentEstimate<Duration2>() const { in operator EnvironmentEstimate<Duration2>()
Dcatch_execution_plan.hpp33 template <typename Duration2>
34 operator ExecutionPlan<Duration2>() const { in operator ExecutionPlan<Duration2>()
/external/catch2/include/internal/
Dcatch_interfaces_reporter.h189 template <typename Duration2>
190 operator BenchmarkStats<Duration2>() const { in BenchmarkStats()
191 std::vector<Duration2> samples2; in BenchmarkStats()
193 …les.begin(), samples.end(), std::back_inserter(samples2), [](Duration d) { return Duration2(d); }); in BenchmarkStats()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-spuriously-wake-up-functions.cpp42 template <class Duration2>
43 constexpr time_point(const time_point<clock, Duration2> &t);
/external/llvm-project/libcxx/include/
Dchrono122 template <class Duration2>
123 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14
146 template <class Clock, class Duration1, class Duration2>
147 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>;
219 template <class Rep1, class Period1, class Clock, class Duration2>
220 time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
221 operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
225 template <class Clock, class Duration1, class Duration2>
226 typename common_type<Duration1, Duration2>::type
227 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
[all …]

12