Lines Matching refs:time_point

103 class time_point
114 time_point(); // has value "epoch" // constexpr in C++14
115 explicit time_point(const duration& d); // same as time_point() + d // constexpr in C++14
119 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14
127 time_point& operator+=(const duration& d);
128 time_point& operator-=(const duration& d);
132 static constexpr time_point min();
133 static constexpr time_point max();
143 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>;
197 // time_point arithmetic (all constexpr in C++14)
199 time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
200 operator+(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
202 time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type>
203 operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs);
205 time_point<Clock, typename common_type<Duration1, duration<Rep2, Period2>>::type>
206 operator-(const time_point<Clock, Duration1>& lhs, const duration<Rep2, Period2>& rhs);
209 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
211 // time_point comparisons (all constexpr in C++14)
213 … bool operator==(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
215 … bool operator!=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
217 … bool operator< (const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
219 … bool operator<=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
221 … bool operator> (const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
223 … bool operator>=(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs);
228 time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);
238 typedef chrono::time_point<system_clock> time_point;
241 static time_point now() noexcept;
242 static time_t to_time_t (const time_point& __t) noexcept;
243 static time_point from_time_t(time_t __t) noexcept;
252 typedef chrono::time_point<steady_clock, duration> time_point;
255 static time_point now() noexcept;
746 ///////////////////// time_point /////////////////////////
750 class _LIBCPP_TYPE_VIS_ONLY time_point
753 "Second template parameter of time_point must be a std::chrono::duration");
763 _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 time_point() : __d_(duration::zero()) {}
764 …_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_AFTER_CXX11 explicit time_point(const duration& __d) :…
769 time_point(const time_point<clock, _Duration2>& t,
782 … _LIBCPP_INLINE_VISIBILITY time_point& operator+=(const duration& __d) {__d_ += __d; return *this;}
783 … _LIBCPP_INLINE_VISIBILITY time_point& operator-=(const duration& __d) {__d_ -= __d; return *this;}
787 …_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR time_point min() {return time_point(duration::m…
788 …_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR time_point max() {return time_point(duration::m…
794 struct _LIBCPP_TYPE_VIS_ONLY common_type<chrono::time_point<_Clock, _Duration1>,
795 chrono::time_point<_Clock, _Duration2> >
797 typedef chrono::time_point<_Clock, typename common_type<_Duration1, _Duration2>::type> type;
804 time_point<_Clock, _ToDuration>
805 time_point_cast(const time_point<_Clock, _Duration>& __t)
807 …return time_point<_Clock, _ToDuration>(_VSTD::chrono::duration_cast<_ToDuration>(__t.time_since_ep…
810 // time_point ==
815 operator==(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
820 // time_point !=
825 operator!=(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
830 // time_point <
835 operator<(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
840 // time_point >
845 operator>(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
850 // time_point <=
855 operator<=(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
860 // time_point >=
865 operator>=(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
870 // time_point operator+(time_point x, duration y);
874 time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type>
875 operator+(const time_point<_Clock, _Duration1>& __lhs, const duration<_Rep2, _Period2>& __rhs)
877 …typedef time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type> _Tr;
881 // time_point operator+(duration x, time_point y);
885 time_point<_Clock, typename common_type<duration<_Rep1, _Period1>, _Duration2>::type>
886 operator+(const duration<_Rep1, _Period1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
891 // time_point operator-(time_point x, duration y);
895 time_point<_Clock, typename common_type<_Duration1, duration<_Rep2, _Period2> >::type>
896 operator-(const time_point<_Clock, _Duration1>& __lhs, const duration<_Rep2, _Period2>& __rhs)
901 // duration operator-(time_point x, time_point y);
906 operator-(const time_point<_Clock, _Duration1>& __lhs, const time_point<_Clock, _Duration2>& __rhs)
921 typedef chrono::time_point<system_clock> time_point;
924 static time_point now() _NOEXCEPT;
925 static time_t to_time_t (const time_point& __t) _NOEXCEPT;
926 static time_point from_time_t(time_t __t) _NOEXCEPT;
935 typedef chrono::time_point<steady_clock, duration> time_point;
938 static time_point now() _NOEXCEPT;