/third_party/boost/libs/chrono/test/duration/ |
D | arithmetic_pass.cpp | 29 boost::chrono::minutes m; in main() 36 boost::chrono::minutes m(3); in main() 37 boost::chrono::minutes m2 = +m; in main() 41 BOOST_CONSTEXPR boost::chrono::minutes m(3); in main() 42 BOOST_CONSTEXPR boost::chrono::minutes m2(+m); in main() 48 boost::chrono::minutes m(3); in main() 49 boost::chrono::minutes m2 = -m; in main() 53 BOOST_CONSTEXPR boost::chrono::minutes m(3); in main() 54 BOOST_CONSTEXPR boost::chrono::minutes m2 = -m; in main() 59 boost::chrono::hours h(3); in main() [all …]
|
D | comparisons_pass.cpp | 26 boost::chrono::seconds s1(3); in main() 27 boost::chrono::seconds s2(3); in main() 32 BOOST_CONSTEXPR boost::chrono::seconds s1(3); in main() 33 BOOST_CONSTEXPR boost::chrono::seconds s2(3); in main() 38 boost::chrono::seconds s1(3); in main() 39 boost::chrono::seconds s2(4); in main() 44 BOOST_CONSTEXPR boost::chrono::seconds s1(3); in main() 45 BOOST_CONSTEXPR boost::chrono::seconds s2(4); in main() 50 boost::chrono::milliseconds s1(3); in main() 51 boost::chrono::microseconds s2(3000); in main() [all …]
|
D | duration_cast_pass.cpp | 39 BOOST_TEST(boost::chrono::duration_cast<ToDuration>(f) == d); in test() 44 test(boost::chrono::milliseconds(7265000), boost::chrono::hours(2)); in main() 45 test(boost::chrono::milliseconds(7265000), boost::chrono::minutes(121)); in main() 46 test(boost::chrono::milliseconds(7265000), boost::chrono::seconds(7265)); in main() 47 test(boost::chrono::milliseconds(7265000), boost::chrono::milliseconds(7265000)); in main() 48 test(boost::chrono::milliseconds(7265000), boost::chrono::microseconds(7265000000LL)); in main() 49 test(boost::chrono::milliseconds(7265000), boost::chrono::nanoseconds(7265000000000LL)); in main() 50 test(boost::chrono::milliseconds(7265000), in main() 51 boost::chrono::duration<double, boost::ratio<3600> >(7265./3600)); in main() 52 test(boost::chrono::duration<int, boost::ratio<2, 3> >(9), in main() [all …]
|
D | constructor_pass.cpp | 60 boost::chrono::milliseconds ms(1); in main() 61 boost::chrono::microseconds us = ms; in main() 64 BOOST_CONSTEXPR boost::chrono::milliseconds ms(1); in main() 65 BOOST_CONSTEXPR boost::chrono::microseconds us = ms; in main() 71 boost::chrono::duration<double, boost::micro> us(1); in main() 72 boost::chrono::duration<double, boost::milli> ms = us; in main() 75 BOOST_CONSTEXPR boost::chrono::duration<double, boost::micro> us(1); in main() 76 BOOST_CONSTEXPR boost::chrono::duration<double, boost::milli> ms = us; in main() 82 boost::chrono::duration<int> i(3); in main() 83 boost::chrono::duration<double> d = i; in main() [all …]
|
/third_party/boost/libs/chrono/test/time_point/ |
D | arithmetic_pass.cpp | 26 typedef boost::chrono::system_clock Clock; in main() 27 typedef boost::chrono::milliseconds Duration; in main() 28 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 33 typedef boost::chrono::system_clock Clock; in main() 34 typedef boost::chrono::milliseconds Duration; in main() 35 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 40 typedef boost::chrono::system_clock Clock; in main() 41 typedef boost::chrono::milliseconds Duration1; in main() 42 typedef boost::chrono::microseconds Duration2; in main() 43 boost::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main() [all …]
|
D | time_point_cast_pass.cpp | 32 typedef boost::chrono::system_clock Clock; in test() 33 typedef boost::chrono::time_point<Clock, FromDuration> FromTimePoint; in test() 34 typedef boost::chrono::time_point<Clock, ToDuration> ToTimePoint; in test() 43 BOOST_TEST(boost::chrono::time_point_cast<ToDuration>(f) == t); in test() 48 test(boost::chrono::milliseconds(7265000), boost::chrono::hours(2)); in main() 49 test(boost::chrono::milliseconds(7265000), boost::chrono::minutes(121)); in main() 50 test(boost::chrono::milliseconds(7265000), boost::chrono::seconds(7265)); in main() 51 test(boost::chrono::milliseconds(7265000), boost::chrono::milliseconds(7265000)); in main() 52 test(boost::chrono::milliseconds(7265000), boost::chrono::microseconds(7265000000LL)); in main() 53 test(boost::chrono::milliseconds(7265000), boost::chrono::nanoseconds(7265000000000LL)); in main() [all …]
|
D | constructor_pass.cpp | 27 typedef boost::chrono::system_clock Clock; in main() 28 typedef boost::chrono::microseconds Duration1; in main() 29 typedef boost::chrono::milliseconds Duration2; in main() 30 boost::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main() 31 boost::chrono::time_point<Clock, Duration1> t1 = t2; in main() 35 typedef boost::chrono::system_clock Clock; in main() 36 typedef boost::chrono::microseconds Duration1; in main() 37 typedef boost::chrono::milliseconds Duration2; in main() 38 BOOST_CONSTEXPR boost::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main() 39 BOOST_CONSTEXPR boost::chrono::time_point<Clock, Duration1> t1 = t2; in main() [all …]
|
D | arithmetic_ext_pass.cpp | 27 typedef boost::chrono::system_clock Clock; in main() 28 typedef boost::chrono::milliseconds Duration; in main() 29 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 34 typedef boost::chrono::system_clock Clock; in main() 35 typedef boost::chrono::milliseconds Duration; in main() 36 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 41 typedef boost::chrono::system_clock Clock; in main() 42 typedef boost::chrono::milliseconds Duration; in main() 43 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main() 48 typedef boost::chrono::system_clock Clock; in main() [all …]
|
/third_party/boost/boost/thread/ |
D | poly_shared_lockable.hpp | 31 virtual bool try_lock_shared_until(chrono::system_clock::time_point const & abs_time)=0; 32 virtual bool try_lock_shared_until(chrono::steady_clock::time_point const & abs_time)=0; 34 bool try_lock_shared_until(chrono::time_point<Clock, Duration> const & abs_time) in try_lock_shared_until() 36 return try_lock_shared_until(chrono::time_point_cast<Clock::time_point>(abs_time)); in try_lock_shared_until() 39 virtual bool try_lock_shared_for(chrono::nanoseconds const & relative_time)=0; 41 bool try_lock_shared_for(chrono::duration<Rep, Period> const & rel_time) in try_lock_shared_for() 43 return try_lock_shared_for(chrono::duration_cast<chrono::nanoseconds>(rel_time)); in try_lock_shared_for() 62 virtual bool try_lock_upgrade_until(chrono::system_clock::time_point const & abs_time)=0; 63 virtual bool try_lock_upgrade_until(chrono::steady_clock::time_point const & abs_time)=0; 65 bool try_lock_upgrade_until(chrono::time_point<Clock, Duration> const & abs_time) in try_lock_upgrade_until() [all …]
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | chrono.hpp | 28 namespace chrono { namespace 31 using std::chrono::duration; 32 using std::chrono::time_point; 33 using std::chrono::duration_cast; 34 using std::chrono::nanoseconds; 35 using std::chrono::microseconds; 36 using std::chrono::milliseconds; 37 using std::chrono::seconds; 38 using std::chrono::minutes; 39 using std::chrono::hours; [all …]
|
/third_party/boost/boost/asio/detail/ |
D | chrono.hpp | 28 namespace chrono { namespace 31 using std::chrono::duration; 32 using std::chrono::time_point; 33 using std::chrono::duration_cast; 34 using std::chrono::nanoseconds; 35 using std::chrono::microseconds; 36 using std::chrono::milliseconds; 37 using std::chrono::seconds; 38 using std::chrono::minutes; 39 using std::chrono::hours; [all …]
|
/third_party/boost/libs/thread/test/ |
D | test_shared_mutex_timed_locks_chrono.cpp | 32 boost::this_thread::sleep_for(boost::chrono::seconds(1)); in BOOST_AUTO_TEST_CASE() 35 boost::chrono::steady_clock::time_point const start=boost::chrono::steady_clock::now(); in BOOST_AUTO_TEST_CASE() 36 boost::chrono::steady_clock::time_point const timeout=start+boost::chrono::milliseconds(500); in BOOST_AUTO_TEST_CASE() 37 boost::chrono::milliseconds const timeout_resolution(50); in BOOST_AUTO_TEST_CASE() 39 BOOST_CHECK((timeout-timeout_resolution)<boost::chrono::steady_clock::now()); in BOOST_AUTO_TEST_CASE() 46 boost::chrono::milliseconds const wait_duration(500); in BOOST_AUTO_TEST_CASE() 47 …boost::chrono::steady_clock::time_point const timeout2=boost::chrono::steady_clock::now()+wait_dur… in BOOST_AUTO_TEST_CASE() 49 BOOST_CHECK((timeout2-timeout_resolution)<boost::chrono::steady_clock::now()); in BOOST_AUTO_TEST_CASE() 66 boost::chrono::steady_clock::time_point const start=boost::chrono::steady_clock::now(); in BOOST_AUTO_TEST_CASE() 67 boost::chrono::steady_clock::time_point const timeout=start+boost::chrono::milliseconds(500); in BOOST_AUTO_TEST_CASE() [all …]
|
/third_party/boost/libs/chrono/test/clock/ |
D | clock_pass.cpp | 109 check_clock_invariants<boost::chrono::high_resolution_clock>(); in main() 110 check_clock_now<boost::chrono::high_resolution_clock>(); in main() 113 check_clock_invariants<boost::chrono::steady_clock>(); in main() 114 BOOST_CHRONO_STATIC_ASSERT(boost::chrono::steady_clock::is_steady, NOTHING, ()); in main() 115 check_clock_now<boost::chrono::steady_clock>(); in main() 118 check_clock_invariants<boost::chrono::system_clock>(); in main() 119 BOOST_CHRONO_STATIC_ASSERT(!boost::chrono::system_clock::is_steady, NOTHING, ()); in main() 120 check_clock_now<boost::chrono::system_clock>(); in main() 122 typedef boost::chrono::system_clock C; in main() 127 typedef boost::chrono::system_clock C; in main() [all …]
|
/third_party/boost/libs/math/reporting/performance/ |
D | test_polynomial.cpp | 36 stopwatch<boost::chrono::high_resolution_clock> w; in test_add() 42 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_add() 46 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract() 52 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_subtract() 56 stopwatch<boost::chrono::high_resolution_clock> w; in test_add_int() 62 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_add_int() 66 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract_int() 72 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_subtract_int() 76 stopwatch<boost::chrono::high_resolution_clock> w; in test_multiply() 82 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_multiply() [all …]
|
/third_party/boost/libs/multiprecision/performance/ |
D | performance_test.hpp | 86 stopwatch<boost::chrono::high_resolution_clock> w; in test_add() 92 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_add() 96 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract() 102 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_subtract() 106 stopwatch<boost::chrono::high_resolution_clock> w; in test_add_int() 112 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_add_int() 116 stopwatch<boost::chrono::high_resolution_clock> w; in test_subtract_int() 122 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_subtract_int() 126 stopwatch<boost::chrono::high_resolution_clock> w; in test_multiply() 132 return boost::chrono::duration_cast<boost::chrono::duration<double> >(w.elapsed()).count(); in test_multiply() [all …]
|
/third_party/boost/libs/chrono/test/ |
D | Jamfile.v2 | 9 # See library home page at http://www.boost.org/libs/chrono 64 rule chrono-run ( sources ) 86 rule chrono-runXXX ( sources ) 109 rule chrono-v1-v2-run ( sources ) 138 rule chrono-run2 ( sources : name ) 183 rule chrono-run-mt ( sources ) 204 rule chrono-run2-mt ( sources * : name ) 226 rule chrono-run-check ( sources ) 249 rule chrono-run-check2 ( sources : name ) 272 rule chrono-run-header ( sources ) [all …]
|
/third_party/boost/libs/fiber/test/ |
D | test_mutex_post.cpp | 21 typedef std::chrono::nanoseconds ns; 22 typedef std::chrono::milliseconds ms; 45 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn3() 47 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn3() 54 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn4() 56 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn4() 63 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn5() 65 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn5() 72 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn6() 74 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn6() [all …]
|
D | test_mutex_dispatch.cpp | 21 typedef std::chrono::nanoseconds ns; 22 typedef std::chrono::milliseconds ms; 45 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn3() 47 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn3() 54 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn4() 56 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn4() 63 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn5() 65 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn5() 72 std::chrono::steady_clock::time_point t0 = std::chrono::steady_clock::now(); in fn6() 74 std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now(); in fn6() [all …]
|
/third_party/boost/libs/chrono/test/io/ |
D | time_point_input.cpp | 18 std::istringstream in(str + boost::chrono::clock_string<Clock, char>::since()); 24 …std::cout << "Expected= " << clock_time_point(boost::chrono::duration_cast<clock_duration>(res)) <… 26 BOOST_TEST( (tp == clock_time_point(boost::chrono::duration_cast<clock_duration>(res)) )); 33 typedef boost::chrono::time_point<Clock, D> clock_time_point; in test_good() 35 std::istringstream in(str + boost::chrono::clock_string<Clock, char>::since()); in test_good() 51 typedef boost::chrono::system_clock Clock; in test_good_system_clock() 54 boost::chrono::time_point<Clock, D> tp; in test_good_system_clock() 59 std::cout << "Expected= " << boost::chrono::time_point<Clock, D>(res) << std::endl; in test_good_system_clock() 61 …std::cout << "Expected= " << boost::chrono::duration_cast<boost::chrono::nanoseconds>(boost::chron… in test_good_system_clock() 62 …std::cout << "Obtained= " << boost::chrono::duration_cast<boost::chrono::nanoseconds>(tp.time_sinc… in test_good_system_clock() [all …]
|
D | time_point_output.cpp | 20 boost::chrono::time_point<Clock, D> tp(d); in test_good_prefix() 25 BOOST_TEST( (out.str() == std::string(str) + boost::chrono::clock_string<Clock, char>::since())); in test_good_prefix() 31 typedef boost::chrono::system_clock Clock; in test_good_prefix_system_clock() 34 boost::chrono::time_point<Clock, D> tp(d); in test_good_prefix_system_clock() 47 boost::chrono::time_point<Clock, D> tp(d); in test_good_symbol() 49 out << boost::chrono::duration_fmt(boost::chrono::duration_style::symbol) << tp; in test_good_symbol() 51 out << boost::chrono::duration_short << tp; in test_good_symbol() 54 BOOST_TEST( (out.str() == std::string(str) + boost::chrono::clock_string<Clock, char>::since())); in test_good_symbol() 61 typedef boost::chrono::system_clock Clock; in test_good_symbol_system_clock() 64 boost::chrono::time_point<Clock, D> tp(d); in test_good_symbol_system_clock() [all …]
|
/third_party/boost/libs/thread/test/threads/this_thread/sleep_until/ |
D | sleep_until_pass.cpp | 29 typedef boost::chrono::steady_clock Clock; in main() 32 boost::chrono::milliseconds ms(500); in main() 36 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 37 boost::chrono::nanoseconds err = ms / 100; in main() 40 … BOOST_TEST((std::max)(ns.count(), -ns.count()) < (err+boost::chrono::milliseconds(1000)).count()); in main() 44 typedef boost::chrono::system_clock Clock; in main() 47 boost::chrono::milliseconds ms(500); in main() 51 boost::chrono::nanoseconds ns = (t1 - t0) - ms; in main() 52 boost::chrono::nanoseconds err = ms / 100; in main() 55 … BOOST_TEST((std::max)(ns.count(), -ns.count()) < (err+boost::chrono::milliseconds(1000)).count()); in main() [all …]
|
/third_party/boost/libs/chrono/test/traits/ |
D | common_type_time_point_pass.cpp | 25 typedef boost::chrono::system_clock C; in test() 26 typedef boost::chrono::time_point<C, D1> T1; in test() 27 typedef boost::chrono::time_point<C, D2> T2; in test() 28 typedef boost::chrono::time_point<C, De> Te; in test() 35 test<boost::chrono::duration<int, boost::ratio<1, 100> >, in testall() 36 boost::chrono::duration<long, boost::ratio<1, 1000> >, in testall() 37 boost::chrono::duration<long, boost::ratio<1, 1000> > >(); in testall() 38 test<boost::chrono::duration<long, boost::ratio<1, 100> >, in testall() 39 boost::chrono::duration<int, boost::ratio<1, 1000> >, in testall() 40 boost::chrono::duration<long, boost::ratio<1, 1000> > >(); in testall() [all …]
|
/third_party/boost/libs/pfr/test/run/ |
D | optional_chrono.cpp | 46 std::optional<std::chrono::seconds> a; 47 std::optional<std::chrono::milliseconds> b; 48 std::optional<std::chrono::microseconds> c; 49 std::optional<std::chrono::nanoseconds> d; 50 std::optional<std::chrono::steady_clock::duration> e; 51 std::optional<std::chrono::system_clock::duration> f; 56 std::chrono::seconds{1}, in main() 57 std::chrono::seconds{2}, in main() 58 std::chrono::seconds{3}, in main() 59 std::chrono::seconds{4}, in main() [all …]
|
/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 26 namespace chrono = std::chrono; 77 const time_point<chrono::nanoseconds> t0 = in TEST() 78 chrono::system_clock::from_time_t(1420167845) + in TEST() 79 chrono::milliseconds(123) + chrono::microseconds(456) + in TEST() 80 chrono::nanoseconds(789); in TEST() 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 95 chrono::time_point_cast<absl::time_internal::cctz::seconds>(t0), in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 26 namespace chrono = std::chrono; 77 const time_point<chrono::nanoseconds> t0 = in TEST() 78 chrono::system_clock::from_time_t(1420167845) + in TEST() 79 chrono::milliseconds(123) + chrono::microseconds(456) + in TEST() 80 chrono::nanoseconds(789); in TEST() 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 95 chrono::time_point_cast<absl::time_internal::cctz::seconds>(t0), in TEST() [all …]
|