Lines Matching defs:Time
24 class Time;
156 // Time
161 class Time FINAL {
175 // Contains the NULL time. Use Time::Now() to get the current time.
176 Time() : us_(0) {}
187 static Time Now();
193 static Time NowFromSystemTime();
196 static Time UnixEpoch() { return Time(0); }
200 static Time Max() { return Time(std::numeric_limits<int64_t>::max()); }
204 static Time FromInternalValue(int64_t value) {
205 return Time(value);
212 static Time FromTimespec(struct timespec ts);
216 static Time FromTimeval(struct timeval tv);
220 static Time FromFiletime(struct _FILETIME ft);
225 static Time FromJsTime(double ms_since_epoch);
228 Time& operator=(const Time& other) {
234 TimeDelta operator-(const Time& other) const {
239 Time& operator+=(const TimeDelta& delta) {
243 Time& operator-=(const TimeDelta& delta) {
249 Time operator+(const TimeDelta& delta) const {
250 return Time(us_ + delta.InMicroseconds());
252 Time operator-(const TimeDelta& delta) const {
253 return Time(us_ - delta.InMicroseconds());
257 bool operator==(const Time& other) const {
260 bool operator!=(const Time& other) const {
263 bool operator<(const Time& other) const {
266 bool operator<=(const Time& other) const {
269 bool operator>(const Time& other) const {
272 bool operator>=(const Time& other) const {
277 explicit Time(int64_t us) : us_(us) {}
279 // Time in microseconds in UTC.
283 inline Time operator+(const TimeDelta& delta, const Time& time) {
295 // Time::Now() may actually decrease or jump). But note that TimeTicks may