Lines Matching refs:Timestamp

12 class Timestamp;
13 Timestamp operator+(Timestamp, const Timestamp &);
122 class Timestamp { public: class
174 inline Timestamp() { in Timestamp() function in Timestamp
187 explicit inline Timestamp(long sec, uint32_t subsec = 0) { in Timestamp() function in Timestamp
191 explicit inline Timestamp(int sec, uint32_t subsec = 0) { in Timestamp() function in Timestamp
195 explicit inline Timestamp(unsigned long sec, uint32_t subsec = 0) { in Timestamp() function in Timestamp
199 explicit inline Timestamp(unsigned sec, uint32_t subsec = 0) { in Timestamp() function in Timestamp
203 explicit inline Timestamp(double);
206 inline Timestamp(const struct timeval &tv);
208 inline Timestamp(const struct timespec &ts);
212 inline Timestamp(const rep_t &rep) in Timestamp() function in Timestamp
217 inline Timestamp(const uninitialized_t &unused) { in Timestamp() function in Timestamp
221 typedef seconds_type (Timestamp::*unspecified_bool_type)() const;
290 inline Timestamp msec_ceil() const { in msec_ceil()
292 return (x ? *this + Timestamp(0, subsec_per_msec - x) : *this); in msec_ceil()
295 inline Timestamp usec_ceil() const { in usec_ceil()
298 return (x ? *this + Timestamp(0, subsec_per_usec - x) : *this); in usec_ceil()
304 inline Timestamp nsec_ceil() const { in nsec_ceil()
310 static inline Timestamp make_jiffies(click_jiffies_t jiffies);
312 static inline Timestamp make_jiffies(click_jiffies_difference_t jiffies);
318 static inline Timestamp make_sec(seconds_type sec) { in make_sec()
319 return Timestamp(sec, 0); in make_sec()
324 static inline Timestamp make_msec(seconds_type sec, uint32_t msec) { in make_msec()
325 return Timestamp(sec, msec_to_subsec(msec)); in make_msec()
328 static inline Timestamp make_msec(value_type msec) { in make_msec()
329 Timestamp t = Timestamp::uninitialized_t(); in make_msec()
341 static inline Timestamp make_usec(seconds_type sec, uint32_t usec) { in make_usec()
342 return Timestamp(sec, usec_to_subsec(usec)); in make_usec()
345 static inline Timestamp make_usec(value_type usec) { in make_usec()
346 Timestamp t = Timestamp::uninitialized_t(); in make_usec()
358 static inline Timestamp make_nsec(seconds_type sec, uint32_t nsec) { in make_nsec()
359 return Timestamp(sec, nsec_to_subsec(nsec)); in make_nsec()
362 static inline Timestamp make_nsec(value_type nsec) { in make_nsec()
363 Timestamp t = Timestamp::uninitialized_t(); in make_nsec()
375 static inline Timestamp epsilon() { in epsilon()
376 return Timestamp(0, 1); in epsilon()
432 static inline Timestamp now();
446 static inline Timestamp recent();
466 static inline Timestamp now_steady();
481 static inline Timestamp recent_steady();
628 static void warp_set_now(const Timestamp &t_system, const Timestamp &t_steady);
632 inline Timestamp warp_real_delay() const;
640 static void warp_jump_steady(const Timestamp &expiry);
647 static inline Timestamp now_unwarped();
659 static inline Timestamp now_steady_unwarped();
712 static inline void warp_adjust(bool steady, const Timestamp &t_raw, const Timestamp &t_warped);
713 inline Timestamp warped(bool steady) const;
717 friend inline bool operator==(const Timestamp &a, const Timestamp &b);
718 friend inline bool operator<(const Timestamp &a, const Timestamp &b);
719 friend inline Timestamp operator-(const Timestamp &b);
720 friend inline Timestamp &operator+=(Timestamp &a, const Timestamp &b);
721 friend inline Timestamp &operator-=(Timestamp &a, const Timestamp &b);
729 static Timestamp::warp_class_type kind;
731 static Timestamp flat_offset[2];
733 friend class Timestamp;
737 inline int Timestamp::warp_class() { in warp_class()
741 inline double Timestamp::warp_speed() { in warp_speed()
745 inline bool Timestamp::warp_jumping() { in warp_jumping()
749 inline Timestamp Timestamp::warped(bool steady) const { in warped()
750 Timestamp t = *this; in warped()
761 Timestamp::Timestamp(const struct timeval& tv) in Timestamp() function in Timestamp
770 Timestamp::Timestamp(const struct timespec& ts) in Timestamp() function in Timestamp
778 Timestamp::operator unspecified_bool_type() const in operator unspecified_bool_type()
781 return _t.x ? &Timestamp::sec : 0; in operator unspecified_bool_type()
783 return _t.sec || _t.subsec ? &Timestamp::sec : 0; in operator unspecified_bool_type()
788 Timestamp::assign_now(bool recent, bool steady, bool unwarped) in assign_now()
913 Timestamp::assign_now() in assign_now()
918 inline Timestamp
919 Timestamp::now() in now()
921 Timestamp t = Timestamp::uninitialized_t(); in now()
927 Timestamp::assign_recent() in assign_recent()
932 inline Timestamp
933 Timestamp::recent() in recent()
935 Timestamp t = Timestamp::uninitialized_t(); in recent()
941 Timestamp::assign_now_steady() in assign_now_steady()
946 inline Timestamp
947 Timestamp::now_steady() in now_steady()
949 Timestamp t = Timestamp::uninitialized_t(); in now_steady()
955 Timestamp::assign_recent_steady() in assign_recent_steady()
960 inline Timestamp
961 Timestamp::recent_steady() in recent_steady()
963 Timestamp t = Timestamp::uninitialized_t(); in recent_steady()
970 Timestamp::assign_now_unwarped() in assign_now_unwarped()
975 inline Timestamp
976 Timestamp::now_unwarped() in now_unwarped()
978 Timestamp t = Timestamp::uninitialized_t(); in now_unwarped()
984 Timestamp::assign_now_steady_unwarped() in assign_now_steady_unwarped()
989 inline Timestamp
990 Timestamp::now_steady_unwarped() in now_steady_unwarped()
992 Timestamp t = Timestamp::uninitialized_t(); in now_steady_unwarped()
1002 Timestamp::set_sec(seconds_type sec) in set_sec()
1017 Timestamp::set_subsec(uint32_t subsec) in set_subsec()
1028 inline Timestamp::seconds_type
1029 Timestamp::sec() const in sec()
1043 Timestamp::subsec() const in subsec()
1055 Timestamp::msec() const in msec()
1063 Timestamp::usec() const in usec()
1071 Timestamp::nsec() const in nsec()
1080 inline Timestamp::seconds_type
1081 Timestamp::msec1() const in msec1()
1094 inline Timestamp::seconds_type
1095 Timestamp::usec1() const in usec1()
1108 inline Timestamp::seconds_type
1109 Timestamp::nsec1() const in nsec1()
1120 Timestamp::jiffies() const in jiffies()
1136 inline Timestamp
1137 Timestamp::make_jiffies(click_jiffies_t jiffies) in make_jiffies()
1140 Timestamp t = Timestamp::uninitialized_t(); in make_jiffies()
1150 inline Timestamp
1151 Timestamp::make_jiffies(click_jiffies_difference_t jiffies) in make_jiffies()
1154 Timestamp t = Timestamp::uninitialized_t(); in make_jiffies()
1169 inline void Timestamp::set_now() { in set_now()
1173 inline void Timestamp::set(seconds_type sec, uint32_t subsec) { in set()
1177 inline void Timestamp::set_usec(seconds_type sec, uint32_t usec) { in set_usec()
1181 inline void Timestamp::set_nsec(seconds_type sec, uint32_t nsec) { in set_nsec()
1192 operator==(const Timestamp &a, const Timestamp &b) in operator ==()
1206 operator!=(const Timestamp &a, const Timestamp &b) in operator !=()
1217 operator<(const Timestamp &a, const Timestamp &b) in operator <()
1228 operator<(const Timestamp &a, int b) in operator <()
1230 return a < Timestamp(b); in operator <()
1239 operator<=(const Timestamp &a, const Timestamp &b) in operator <=()
1246 operator<=(const Timestamp &a, int b) in operator <=()
1248 return a <= Timestamp(b); in operator <=()
1257 operator>=(const Timestamp &a, const Timestamp &b) in operator >=()
1264 operator>=(const Timestamp &a, int b) in operator >=()
1266 return a >= Timestamp(b); in operator >=()
1275 operator>(const Timestamp &a, const Timestamp &b) in operator >()
1282 operator>(const Timestamp &a, int b) in operator >()
1284 return a > Timestamp(b); in operator >()
1290 inline Timestamp &
1291 operator+=(Timestamp &a, const Timestamp &b) in operator +=()
1306 inline Timestamp &
1307 operator-=(Timestamp &a, const Timestamp &b) in operator -=()
1320 inline Timestamp
1321 operator+(Timestamp a, const Timestamp &b) in operator +()
1328 inline Timestamp
1329 operator-(Timestamp a, const Timestamp &b) in operator -()
1336 inline Timestamp
1337 operator-(const Timestamp &a) in operator -()
1340 Timestamp t = Timestamp::uninitialized_t(); in operator -()
1345 return Timestamp(-(a.sec() + 1), Timestamp::subsec_per_sec - a.subsec()); in operator -()
1347 return Timestamp(-a.sec(), 0); in operator -()
1354 Timestamp::doubleval() const in doubleval()
1365 Timestamp::Timestamp(double d) in Timestamp() function in Timestamp
1378 inline Timestamp
1379 operator*(const Timestamp &a, double b) in operator *()
1381 return Timestamp(a.doubleval() * b); in operator *()
1384 inline Timestamp
1385 operator*(const Timestamp &a, int b) in operator *()
1387 return Timestamp(a.doubleval() * b); in operator *()
1390 inline Timestamp
1391 operator*(const Timestamp &a, unsigned b) in operator *()
1393 return Timestamp(a.doubleval() * b); in operator *()
1396 inline Timestamp
1397 operator*(double a, const Timestamp &b) in operator *()
1399 return Timestamp(b.doubleval() * a); in operator *()
1402 inline Timestamp
1403 operator*(int a, const Timestamp &b) in operator *()
1405 return Timestamp(b.doubleval() * a); in operator *()
1408 inline Timestamp
1409 operator*(unsigned a, const Timestamp &b) in operator *()
1411 return Timestamp(b.doubleval() * a); in operator *()
1415 inline Timestamp
1416 operator/(const Timestamp &a, double b) in operator /()
1418 return Timestamp(a.doubleval() / b); in operator /()
1421 inline Timestamp
1422 operator/(const Timestamp &a, int b) in operator /()
1424 return Timestamp(a.doubleval() / b); in operator /()
1427 inline Timestamp
1428 operator/(const Timestamp &a, unsigned b) in operator /()
1430 return Timestamp(a.doubleval() / b); in operator /()
1435 operator/(const Timestamp &a, const Timestamp &b) in operator /()
1441 StringAccum& operator<<(StringAccum&, const Timestamp&);
1444 inline Timestamp
1445 Timestamp::warp_real_delay() const in warp_real_delay()
1456 Timestamp::timeval() const in timeval()
1462 Timestamp::timeval_ceil() const in timeval_ceil()
1474 Timestamp::timeval() const in timeval()
1488 Timestamp::timeval_ceil() const in timeval_ceil()
1490 return (*this + Timestamp(0, subsec_per_usec - 1)).timeval(); in timeval_ceil()
1497 Timestamp::timespec() const in timespec()
1508 Timestamp::timespec() const in timespec()
1521 bool cp_time(const String &str, Timestamp *result, bool allow_negative);
1529 bool parse(const String &str, Timestamp &value, const ArgContext &args = blank_args) { in parse()
1536 template<> struct DefaultArg<Timestamp> : public TimestampArg {};
1537 template<> struct has_trivial_copy<Timestamp> : public true_type {};