Home
last modified time | relevance | path

Searched refs:high_resolution_clock (Results 1 – 25 of 156) sorted by relevance

1234567

/third_party/boost/libs/chrono/example/
Dtest_clock.cpp112 high_resolution_clock::duration delay = milliseconds(5); in test_hi_resolution_clock()
113 high_resolution_clock::time_point start = high_resolution_clock::now(); in test_hi_resolution_clock()
114 while (high_resolution_clock::now() - start <= delay) in test_hi_resolution_clock()
116 high_resolution_clock::time_point stop = high_resolution_clock::now(); in test_hi_resolution_clock()
117 high_resolution_clock::duration elapsed = stop - start; in test_hi_resolution_clock()
119 start = high_resolution_clock::now(); in test_hi_resolution_clock()
120 stop = high_resolution_clock::now(); in test_hi_resolution_clock()
168 test_clock<high_resolution_clock>(); in main()
Dtest_clock2.cpp148 high_resolution_clock::duration delay = milliseconds(5); in test_hi_resolution_clock()
149 high_resolution_clock::time_point start = high_resolution_clock::now(); in test_hi_resolution_clock()
150 while (high_resolution_clock::now() - start <= delay) in test_hi_resolution_clock()
152 high_resolution_clock::time_point stop = high_resolution_clock::now(); in test_hi_resolution_clock()
153 high_resolution_clock::duration elapsed = stop - start; in test_hi_resolution_clock()
155 start = high_resolution_clock::now(); in test_hi_resolution_clock()
156 stop = high_resolution_clock::now(); in test_hi_resolution_clock()
204 test_clock<high_resolution_clock>(); in main()
Dio_ex3.cpp25 high_resolution_clock::time_point t0 = high_resolution_clock::now(); in main()
31 high_resolution_clock::time_point t1; in main()
37 high_resolution_clock::time_point t = high_resolution_clock::now(); in main()
Dawait_keystroke.cpp39 timer<high_resolution_clock> t3; in main()
62 high_resolution_clock::time_point d8 = high_resolution_clock::now(); in main()
63 high_resolution_clock::time_point d9 = high_resolution_clock::now(); in main()
Dtimer.hpp26 template <class Clock=boost::chrono::high_resolution_clock>
57 typedef chrono::timer< boost::chrono::high_resolution_clock > high_resolution_timer;
Dio_ex1.cpp70 << "high_resolution_clock::now() = " << high_resolution_clock::now() << '\n'; in main()
73 << "high_resolution_clock::now() = " << high_resolution_clock::now() << '\n'; in main()
Dtime2_demo_output.txt134 high_resolution_clock test
136 high_resolution_clock resolution estimate: 96 nanoseconds
138 Add 5 milliseconds to a high_resolution_clock::time_point
140 subtract high_resolution_clock::time_point from monotonic_clock::time_point and add that to a syste…
/third_party/boost/libs/math/reporting/performance/
Dtest_polynomial.cpp36 stopwatch<boost::chrono::high_resolution_clock> w; in test_add()
46 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract()
56 stopwatch<boost::chrono::high_resolution_clock> w; in test_add_int()
66 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract_int()
76 stopwatch<boost::chrono::high_resolution_clock> w; in test_multiply()
86 stopwatch<boost::chrono::high_resolution_clock> w; in test_multiply_int()
96 stopwatch<boost::chrono::high_resolution_clock> w; in test_divide()
106 stopwatch<boost::chrono::high_resolution_clock> w; in test_divide_int()
117 stopwatch<boost::chrono::high_resolution_clock> w; in test_gcd()
128 stopwatch<boost::chrono::high_resolution_clock> w; in test_inplace_add()
[all …]
/third_party/boost/libs/multiprecision/performance/
Dperformance_test.hpp86 stopwatch<boost::chrono::high_resolution_clock> w; in test_add()
96 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract()
106 stopwatch<boost::chrono::high_resolution_clock> w; in test_add_int()
116 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract_int()
126 stopwatch<boost::chrono::high_resolution_clock> w; in test_multiply()
136 stopwatch<boost::chrono::high_resolution_clock> w; in test_multiply_int()
146 stopwatch<boost::chrono::high_resolution_clock> w; in test_divide()
156 stopwatch<boost::chrono::high_resolution_clock> w; in test_divide_int()
166 stopwatch<boost::chrono::high_resolution_clock> w; in test_str()
173 stopwatch<boost::chrono::high_resolution_clock> w; in test_str()
[all …]
/third_party/boost/libs/thread/example/
Dperf_shared_mutex.cpp45 …boost::chrono::high_resolution_clock::duration best_time(std::numeric_limits<boost::chrono::high_r… in main()
47 boost::chrono::high_resolution_clock clock; in main()
48 boost::chrono::high_resolution_clock::time_point s1 = clock.now(); in main()
62 boost::chrono::high_resolution_clock::time_point f1 = clock.now(); in main()
/third_party/grpc/src/cpp/util/
Dtime_cc.cc24 using std::chrono::high_resolution_clock;
47 void TimepointHR2Timespec(const high_resolution_clock::time_point& from, in TimepointHR2Timespec()
49 high_resolution_clock::duration deadline = from.time_since_epoch(); in TimepointHR2Timespec()
51 if (from == high_resolution_clock::time_point::max() || in TimepointHR2Timespec()
/third_party/benchmark/src/
Dtimers.h19 template <bool HighResIsSteady = std::chrono::high_resolution_clock::is_steady>
21 typedef std::chrono::high_resolution_clock type;
34 typedef std::chrono::high_resolution_clock type;
/third_party/json/benchmarks/thirdparty/benchmark/src/
Dtimers.h19 template <bool HighResIsSteady = std::chrono::high_resolution_clock::is_steady>
21 typedef std::chrono::high_resolution_clock type;
34 typedef std::chrono::high_resolution_clock type;
/third_party/boost/libs/chrono/test/clock/
Dclock_pass.cpp109 check_clock_invariants<boost::chrono::high_resolution_clock>(); in main()
110 check_clock_now<boost::chrono::high_resolution_clock>(); in main()
166 check_clock_now_ec<boost::chrono::high_resolution_clock>(); in main()
167 check_clock_now_throws<boost::chrono::high_resolution_clock>(); in main()
/third_party/boost/libs/asio/include/boost/asio/detail/
Dchrono.hpp47 using std::chrono::high_resolution_clock;
61 using boost::chrono::high_resolution_clock;
/third_party/boost/boost/asio/detail/
Dchrono.hpp47 using std::chrono::high_resolution_clock;
61 using boost::chrono::high_resolution_clock;
/third_party/boost/libs/poly_collection/example/
Dperf.cpp17 std::chrono::high_resolution_clock::time_point measure_start,measure_pause;
31 high_resolution_clock::time_point t2; in measure()
33 measure_start=high_resolution_clock::now(); in measure()
37 t2=high_resolution_clock::now(); in measure()
57 measure_pause=std::chrono::high_resolution_clock::now(); in pause_timing()
62 measure_start+=std::chrono::high_resolution_clock::now()-measure_pause; in resume_timing()
/third_party/mindspore/mindspore/lite/examples/unified_api/src/
Dnet_runner.cc88 start_time_ = std::chrono::high_resolution_clock::now(); in EpochBegin()
91 end_time_ = std::chrono::high_resolution_clock::now(); in EpochEnd()
106 std::chrono::time_point<std::chrono::high_resolution_clock> start_time_;
107 std::chrono::time_point<std::chrono::high_resolution_clock> end_time_;
/third_party/mindspore/mindspore/lite/test/ut/src/dataset/
Deager_test.cc54 auto t_start = std::chrono::high_resolution_clock::now(); in TEST_F()
75 auto t_end = std::chrono::high_resolution_clock::now(); in TEST_F()
/third_party/boost/boost/chrono/
Dsystem_clocks.hpp105 typedef steady_clock high_resolution_clock; // as permitted by [time.clock.hires] typedef
107 typedef system_clock high_resolution_clock; // as permitted by [time.clock.hires] typedef
/third_party/mindspore/mindspore/lite/examples/train_lenet/src/
Dnet_runner.cc86 start_time_ = std::chrono::high_resolution_clock::now(); in EpochBegin()
89 end_time_ = std::chrono::high_resolution_clock::now(); in EpochEnd()
104 std::chrono::time_point<std::chrono::high_resolution_clock> start_time_;
105 std::chrono::time_point<std::chrono::high_resolution_clock> end_time_;
/third_party/boost/libs/variant2/benchmark/
Dbenchmark2.cpp96 auto tp1 = std::chrono::high_resolution_clock::now(); in test_()
121 auto tp2 = std::chrono::high_resolution_clock::now(); in test_()
/third_party/boost/libs/chrono/perf/
Dstore_now_in_vector.cpp24 typedef boost::chrono::timer<boost::chrono::high_resolution_clock> Stopwatch;
130 test<boost::chrono::high_resolution_clock>(); in main()
/third_party/boost/libs/asio/include/boost/asio/
Dhigh_resolution_timer.hpp38 chrono::high_resolution_clock>
/third_party/boost/boost/asio/
Dhigh_resolution_timer.hpp38 chrono::high_resolution_clock>

1234567