Home
last modified time | relevance | path

Searched refs:time_point (Results 1 – 25 of 515) sorted by relevance

12345678910>>...21

/third_party/boost/libs/locale/test/
Dtest_date_time.cpp27 #define RESET() do { time_point = base_time_point; ss.str(""); } while(0)
90 date_time time_point; in main() local
92 time_point=year(1970) + february() + day(5); in main()
94 ss << as::ftime("%Y-%m-%d")<< time_point; in main()
97 time_point = 3 * hour_12() + 1 * am_pm() + 33 * minute() + 13 * second(); in main()
99 ss << as::ftime("%Y-%m-%d %H:%M:%S") << time_point; in main()
111 time_point += hour(); in main()
112 TESTEQSR(time_point,"1970-02-05 16:33:13"); in main()
114 TEST(time_point.minimum(day())==1); in main()
115 TEST(time_point.maximum(day())==28); in main()
[all …]
/third_party/boost/boost/chrono/
Dtime_point.hpp51 class time_point;
60 struct common_type<chrono::time_point<Clock, Duration1>,
61 chrono::time_point<Clock, Duration2> >;
70 struct common_type<chrono::time_point<Clock, Duration1>,
71 chrono::time_point<Clock, Duration2> >
73 typedef chrono::time_point<Clock,
84 time_point<Clock,
87 const time_point<Clock, Duration1>& lhs,
91 time_point<Clock,
95 const time_point<Clock, Duration2>& rhs);
[all …]
Dsystem_clocks.hpp133 typedef chrono::time_point<system_clock> time_point; typedef in boost::chrono::system_clock
136 static BOOST_CHRONO_INLINE time_point now() BOOST_NOEXCEPT;
138 static BOOST_CHRONO_INLINE time_point now(system::error_code & ec);
141 static BOOST_CHRONO_INLINE std::time_t to_time_t(const time_point& t) BOOST_NOEXCEPT;
142 static BOOST_CHRONO_INLINE time_point from_time_t(std::time_t t) BOOST_NOEXCEPT;
159 typedef chrono::time_point<steady_clock> time_point; typedef in boost::chrono::steady_clock
162 static BOOST_CHRONO_INLINE time_point now() BOOST_NOEXCEPT;
164 static BOOST_CHRONO_INLINE time_point now(system::error_code & ec);
/third_party/boost/boost/chrono/detail/inlined/mac/
Dprocess_cpu_clocks.hpp49 process_real_cpu_clock::time_point process_real_cpu_clock::now() BOOST_NOEXCEPT in now()
62 return time_point(nanoseconds(c * factor)); in now()
68 return time_point(); in now()
79 return time_point(nanoseconds(c * factor)); in now()
85 return time_point(); in now()
90 process_real_cpu_clock::time_point process_real_cpu_clock::now(system::error_code & ec) in now()
104 return time_point(); in now()
115 return time_point(nanoseconds(c * factor)); in now()
124 return time_point(); in now()
138 return time_point(); in now()
[all …]
Dchrono.hpp29 system_clock::time_point
34 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); in now()
38 system_clock::time_point
47 return time_point(seconds(tv.tv_sec) + microseconds(tv.tv_usec)); in now()
54 system_clock::to_time_t(const time_point& t) BOOST_NOEXCEPT in to_time_t()
60 system_clock::time_point
63 return system_clock::time_point(seconds(t)); in from_time_t()
200 steady_clock::time_point
209 return time_point(duration(fp())); in now()
213 steady_clock::time_point
[all …]
/third_party/boost/boost/chrono/detail/inlined/posix/
Dprocess_cpu_clocks.hpp44 process_real_cpu_clock::time_point process_real_cpu_clock::now() BOOST_NOEXCEPT in now()
56 return time_point( in now()
64 return time_point(); in now()
68 process_real_cpu_clock::time_point process_real_cpu_clock::now( in now()
87 return time_point(); in now()
98 return time_point( in now()
114 return time_point(); in now()
121 process_user_cpu_clock::time_point process_user_cpu_clock::now() BOOST_NOEXCEPT in now()
133 return time_point( in now()
141 return time_point(); in now()
[all …]
Dchrono.hpp22 system_clock::time_point system_clock::now() BOOST_NOEXCEPT in now()
30 return time_point(duration( in now()
35 system_clock::time_point system_clock::now(system::error_code & ec) in now()
51 return time_point(); in now()
59 return time_point(duration( in now()
64 std::time_t system_clock::to_time_t(const system_clock::time_point& t) BOOST_NOEXCEPT in to_time_t()
69 system_clock::time_point system_clock::from_time_t(std::time_t t) BOOST_NOEXCEPT in from_time_t()
71 return time_point(duration(static_cast<system_clock::rep>(t) * 1000000000)); in from_time_t()
76 steady_clock::time_point steady_clock::now() BOOST_NOEXCEPT in now()
93 return time_point(duration( in now()
[all …]
/third_party/boost/boost/thread/
Dpoly_shared_lockable.hpp31 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()
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()
67 return try_lock_upgrade_until(chrono::time_point_cast<Clock::time_point>(abs_time)); in try_lock_upgrade_until()
79 …virtual bool try_unlock_shared_and_lock_until(chrono::system_clock::time_point const & abs_time)=0;
80 …virtual bool try_unlock_shared_and_lock_until(chrono::steady_clock::time_point const & abs_time)=0;
[all …]
Dpoly_shared_lockable_adapter.hpp40 bool try_lock_shared_until(chrono::system_clock::time_point const & abs_time) in try_lock_shared_until()
44 bool try_lock_shared_until(chrono::steady_clock::time_point const & abs_time) in try_lock_shared_until()
79 bool try_lock_upgrade_until(chrono::system_clock::time_point const & abs_time) in try_lock_upgrade_until()
83 bool try_lock_upgrade_until(chrono::steady_clock::time_point const & abs_time) in try_lock_upgrade_until()
97 bool try_unlock_shared_and_lock_until(chrono::system_clock::time_point const & abs_time) in try_unlock_shared_and_lock_until()
101 bool try_unlock_shared_and_lock_until(chrono::steady_clock::time_point const & abs_time) in try_unlock_shared_and_lock_until()
120 bool try_unlock_shared_and_lock_upgrade_until(chrono::system_clock::time_point const & abs_time) in try_unlock_shared_and_lock_upgrade_until()
124 bool try_unlock_shared_and_lock_upgrade_until(chrono::steady_clock::time_point const & abs_time) in try_unlock_shared_and_lock_upgrade_until()
147 bool try_unlock_upgrade_and_lock_until(chrono::system_clock::time_point const & abs_time) in try_unlock_upgrade_and_lock_until()
151 bool try_unlock_upgrade_and_lock_until(chrono::steady_clock::time_point const & abs_time) in try_unlock_upgrade_and_lock_until()
/third_party/boost/libs/chrono/example/
Dcycle_count.cpp44 typedef boost::chrono::time_point<cycle_count> time_point; typedef
46 static time_point now() in now()
50 return time_point(duration(++tick)); // fake access to clock cycle count in now()
62 typedef boost::chrono::time_point<approx_cycle_count> time_point; typedef
64 static time_point now() in now()
69 return time_point(duration(++tick * nanosec_per_sec / frequency)); in now()
82 clock::time_point start = clock::now(); in cycle_count_delay()
83 clock::time_point stop = start + delay; in cycle_count_delay()
86 clock::time_point end = clock::now(); in cycle_count_delay()
96 clock::time_point start = clock::now(); in cycle_count_delay()
[all …]
Druntime_resolution.cpp160 class time_point class
172 time_point() : rep_(0) {} in time_point() function in runtime_resolution::time_point
173 explicit time_point(const duration& d) in time_point() function in runtime_resolution::time_point
178 time_point& operator+=(const duration& d) {rep_ += d.count(); return *this;} in operator +=()
179 time_point& operator-=(const duration& d) {rep_ -= d.count(); return *this;} in operator -=()
181 friend time_point operator+(time_point x, duration y) {return x += y;} in operator +()
182 friend time_point operator+(duration x, time_point y) {return y += x;} in operator +()
183 friend time_point operator-(time_point x, duration y) {return x -= y;} in operator -()
184 friend duration operator-(time_point x, time_point y) {return duration(x.rep_ - y.rep_);} in operator -()
193 typedef runtime_resolution::time_point time_point; typedef in runtime_resolution::clock
[all …]
Dtest_clock.cpp46 typename Clock::time_point start = Clock::now(); in test_clock()
49 typename Clock::time_point stop = Clock::now(); in test_clock()
54 typename Clock::time_point start = Clock::now(); in test_clock()
55 typename Clock::time_point stop; in test_clock()
72 typename Clock::time_point start = Clock::now(); in test_clock()
73 typename Clock::time_point stop = Clock::now(); in test_clock()
82 system_clock::time_point start = system_clock::now(); in test_system_clock()
85 system_clock::time_point stop = system_clock::now(); in test_system_clock()
98 steady_clock::time_point start = steady_clock::now(); in test_steady_clock()
101 steady_clock::time_point stop = steady_clock::now(); in test_steady_clock()
[all …]
Dtest_clock2.cpp81 typename Clock::time_point start = Clock::now(); in test_clock()
84 typename Clock::time_point stop = Clock::now(); in test_clock()
89 typename Clock::time_point start = Clock::now(); in test_clock()
90 typename Clock::time_point stop; in test_clock()
107 typename Clock::time_point start = Clock::now(); in test_clock()
108 typename Clock::time_point stop = Clock::now(); in test_clock()
118 chrono::system_clock::time_point start = system_clock::now(); in test_system_clock()
121 chrono::system_clock::time_point stop = system_clock::now(); in test_system_clock()
134 steady_clock::time_point start = steady_clock::now(); in test_steady_clock()
137 steady_clock::time_point stop = steady_clock::now(); in test_steady_clock()
[all …]
/third_party/boost/boost/chrono/detail/inlined/win/
Dprocess_cpu_clocks.hpp33 process_real_cpu_clock::time_point process_real_cpu_clock::now() BOOST_NOEXCEPT in now()
41 return time_point( in now()
47 process_real_cpu_clock::time_point process_real_cpu_clock::now( in now()
64 return time_point( in now()
71 process_user_cpu_clock::time_point process_user_cpu_clock::now() BOOST_NOEXCEPT in now()
81 return time_point(duration( in now()
89 return time_point(); in now()
95 process_user_cpu_clock::time_point process_user_cpu_clock::now( in now()
110 return time_point(duration( in now()
129 return time_point(); in now()
[all …]
Dchrono.hpp38 steady_clock::time_point steady_clock::now() BOOST_NOEXCEPT in now()
46 return steady_clock::time_point(); in now()
54 return steady_clock::time_point(); in now()
58 return steady_clock::time_point(steady_clock::duration( in now()
64 steady_clock::time_point steady_clock::now( system::error_code & ec ) in now()
86 return steady_clock::time_point(duration(0)); in now()
94 return time_point(duration( in now()
100 system_clock::time_point system_clock::now() BOOST_NOEXCEPT in now()
104 return system_clock::time_point( in now()
115 system_clock::time_point system_clock::now( system::error_code & ec ) in now()
[all …]
/third_party/boost/libs/thread/test/threads/this_thread/sleep_until/
Dsleep_until_pass.cpp30 typedef Clock::time_point time_point; in main() typedef
33 time_point t0 = Clock::now(); in main()
35 time_point t1 = Clock::now(); in main()
45 typedef Clock::time_point time_point; in main() typedef
48 time_point t0 = Clock::now(); in main()
50 time_point t1 = Clock::now(); in main()
60 typedef Clock::time_point time_point; in main() typedef
63 time_point t0 = Clock::now(); in main()
65 time_point t1 = Clock::now(); in main()
75 typedef Clock::time_point time_point; in main() typedef
[all …]
/third_party/boost/libs/chrono/test/time_point/
Darithmetic_pass.cpp28 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
35 boost::chrono::time_point<Clock, Duration> t(Duration(3)); in main()
43 boost::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
44 boost::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
51 BOOST_CONSTEXPR boost::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
52 BOOST_CONSTEXPR boost::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main()
59 boost::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
60 boost::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
67 BOOST_CONSTEXPR boost::chrono::time_point<Clock, Duration1> t1(Duration1(3)); in main()
68 BOOST_CONSTEXPR boost::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h38 using time_point = std::chrono::time_point<std::chrono::system_clock, D>; variable
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
45 const time_point<D>& tp) { in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
107 absolute_lookup lookup(const time_point<D>& tp) const { in lookup()
158 time_point<seconds> pre; // uses the pre-transition offset
159 time_point<seconds> trans; // instant of civil-offset change
160 time_point<seconds> post; // uses the post-transition offset
[all …]
/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/
Dtime_zone.h38 using time_point = std::chrono::time_point<std::chrono::system_clock, D>; variable
44 inline std::pair<time_point<seconds>, D> split_seconds( in split_seconds()
45 const time_point<D>& tp) { in split_seconds()
54 inline std::pair<time_point<seconds>, seconds> split_seconds( in split_seconds()
55 const time_point<seconds>& tp) { in split_seconds()
105 absolute_lookup lookup(const time_point<seconds>& tp) const;
107 absolute_lookup lookup(const time_point<D>& tp) const { in lookup()
158 time_point<seconds> pre; // uses the pre-transition offset
159 time_point<seconds> trans; // instant of civil-offset change
160 time_point<seconds> post; // uses the post-transition offset
[all …]
/third_party/boost/boost/sort/common/
Dtime_measure.hpp31 typedef chrn::steady_clock::time_point time_point; typedef
33 time_point now ( );
34 double subtract_time ( const time_point & t1, const time_point & t2 );
41 time_point now ( ) { return chrn::steady_clock::now( ); }; in now()
50 double subtract_time ( const time_point & t1, const time_point & t2 ) in subtract_time()
/third_party/boost/libs/icl/test/
Dtest_type_lists.hpp58 ,Now::time_point
59 ,boch::time_point<Now, boch::duration<double> >
72 typedef boch::time_point<Now, duration_int_11_113s > Now_time_int_11_113s;
73 typedef boch::time_point<Now, boch::duration<double> > Now_time_double;
74 typedef boch::time_point<Now, boch::duration<boost::rational<int> > > Now_time_rational;
75 … typedef boch::time_point<Now, duration_rational_101_997s > Now_time_rational_101_997s;
79 typedef Now::time_point bicremental_type_3;
107 ,Now::time_point
114 typedef Now::time_point signed_bicremental_type_3;
138 ,boch::time_point<Now, boch::duration<double> >
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc190 const time_point<seconds>& tp) const { in BreakTime()
231 civil_second() + ToUnixSeconds(time_point<seconds>::min()); in MakeTime()
233 civil_second() + ToUnixSeconds(time_point<seconds>::max()); in MakeTime()
234 const time_point<seconds> tp = (cs < min_tp_cs) ? time_point<seconds>::min() in MakeTime()
236 ? time_point<seconds>::max() in MakeTime()
244 const time_point<seconds> tp = time_point<seconds>::min(); in MakeTime()
249 const time_point<seconds> tp = time_point<seconds>::max(); in MakeTime()
263 const time_point<seconds> tp = FromUnixSeconds(t0); in MakeTime()
272 const time_point<seconds> trans = FromUnixSeconds(tt); in MakeTime()
276 const time_point<seconds> pre = FromUnixSeconds(t1); in MakeTime()
[all …]
/third_party/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_libc.cc184 const time_point<seconds>& tp) const { in BreakTime()
225 civil_second() + ToUnixSeconds(time_point<seconds>::min()); in MakeTime()
227 civil_second() + ToUnixSeconds(time_point<seconds>::max()); in MakeTime()
228 const time_point<seconds> tp = (cs < min_tp_cs) ? time_point<seconds>::min() in MakeTime()
230 ? time_point<seconds>::max() in MakeTime()
238 const time_point<seconds> tp = time_point<seconds>::min(); in MakeTime()
243 const time_point<seconds> tp = time_point<seconds>::max(); in MakeTime()
257 const time_point<seconds> tp = FromUnixSeconds(t0); in MakeTime()
266 const time_point<seconds> trans = FromUnixSeconds(tt); in MakeTime()
270 const time_point<seconds> pre = FromUnixSeconds(t1); in MakeTime()
[all …]
/third_party/boost/libs/thread/test/threads/this_thread/sleep_for/
Dsleep_for_pass.cpp30 typedef Clock::time_point time_point; in main() typedef
32 time_point t0 = Clock::now(); in main()
34 time_point t1 = Clock::now(); in main()
44 typedef Clock::time_point time_point; in main() typedef
46 time_point t0 = Clock::now(); in main()
48 time_point t1 = Clock::now(); in main()
/third_party/grpc/src/cpp/util/
Dtime_cc.cc31 void Timepoint2Timespec(const system_clock::time_point& from, in Timepoint2Timespec()
35 if (from == system_clock::time_point::max() || in Timepoint2Timespec()
47 void TimepointHR2Timespec(const high_resolution_clock::time_point& from, in TimepointHR2Timespec()
51 if (from == high_resolution_clock::time_point::max() || in TimepointHR2Timespec()
63 system_clock::time_point Timespec2Timepoint(gpr_timespec t) { in Timespec2Timepoint()
65 return system_clock::time_point::max(); in Timespec2Timepoint()
68 system_clock::time_point tp; in Timespec2Timepoint()
69 tp += duration_cast<system_clock::time_point::duration>(seconds(t.tv_sec)); in Timespec2Timepoint()
71 duration_cast<system_clock::time_point::duration>(nanoseconds(t.tv_nsec)); in Timespec2Timepoint()

12345678910>>...21