Lines Matching defs:const

59     static const long NSEC_PER_SEC  = 1000 * 1000 * 1000;
60 static const long NSEC_PER_MSEC = 1000 * 1000;
61 static const long NSEC_PER_USEC = 1000;
66 Time(const Time &val) : _time(val._time) { }
68 Time(const timeval &tv) { operator=(tv); }
69 Time(const timespec &ts) { operator=(ts); }
74 time_t sec() const { return _time.tv_sec; }
75 long msec() const { return _time.tv_nsec / NSEC_PER_MSEC; }
76 long usec() const { return _time.tv_nsec / NSEC_PER_USEC; }
77 long nsec() const { return _time.tv_nsec; }
115 Tick getTick() const;
117 const Time &
118 operator=(const Time &other)
125 const Time &
134 const Time &
135 operator=(const timeval &tv)
142 const Time &
143 operator=(const timespec &ts)
153 operator double() const
161 operator timespec() const { return _time; }
162 operator timeval() const
170 const Time &
171 operator+=(const Time &other)
184 const Time &
185 operator-=(const Time &other)
197 std::string date(const std::string &format = "") const;
198 std::string time() const;
200 void serialize(const std::string &base, CheckpointOut &cp) const;
201 void unserialize(const std::string &base, CheckpointIn &cp);
204 void sleep(const Time &time);
207 operator==(const Time &l, const Time &r)
213 operator!=(const Time &l, const Time &r)
219 operator<(const Time &l, const Time &r)
226 operator<=(const Time &l, const Time &r)
233 operator>(const Time &l, const Time &r)
240 operator>=(const Time &l, const Time &r)
247 operator+(const Time &l, const Time &r)
255 operator-(const Time &l, const Time &r)
263 operator<<(std::ostream &out, const Time &time)