Lines Matching defs:TimeTicks
13 // TimeTicks represents an abstract time that is most of the time incrementing
17 // Time::Now() may actually decrease or jump). But note that TimeTicks may
54 class TimeTicks;
156 TimeTicks operator+(TimeTicks t) const;
180 friend class TimeTicks;
529 // TimeTicks ------------------------------------------------------------------
531 class BASE_EXPORT TimeTicks {
533 TimeTicks() : ticks_(0) {
539 static TimeTicks Now();
545 static TimeTicks HighResNow();
564 static TimeTicks ThreadNow();
571 static TimeTicks NowFromSystemTraceTime();
577 static TimeTicks FromQPCValue(LONGLONG qpc_value);
583 // Enable high resolution time for TimeTicks::Now(). This function will
587 // calls to TimeTicks::Now() will have the higher resolution provided by QPC.
592 static TimeTicks UnprotectedNow();
600 // Converts an integer value representing TimeTicks to a class. This is used
601 // when deserializing a |TimeTicks| structure, using a value known to be
604 static TimeTicks FromInternalValue(int64 ticks) {
605 return TimeTicks(ticks);
609 // you need to relate the value of TimeTicks to a real time and date.
614 static TimeTicks UnixEpoch();
616 // Returns the internal numeric value of the TimeTicks object.
622 TimeTicks& operator=(TimeTicks other) {
628 TimeDelta operator-(TimeTicks other) const {
633 TimeTicks& operator+=(TimeDelta delta) {
637 TimeTicks& operator-=(TimeDelta delta) {
642 // Return a new TimeTicks modified by some delta.
643 TimeTicks operator+(TimeDelta delta) const {
644 return TimeTicks(ticks_ + delta.delta_);
646 TimeTicks operator-(TimeDelta delta) const {
647 return TimeTicks(ticks_ - delta.delta_);
651 bool operator==(TimeTicks other) const {
654 bool operator!=(TimeTicks other) const {
657 bool operator<(TimeTicks other) const {
660 bool operator<=(TimeTicks other) const {
663 bool operator>(TimeTicks other) const {
666 bool operator>=(TimeTicks other) const {
675 explicit TimeTicks(int64 ticks) : ticks_(ticks) {
687 inline TimeTicks TimeDelta::operator+(TimeTicks t) const {
688 return TimeTicks(t.ticks_ + delta_);