Searched refs:nanos_ (Results 1 – 2 of 2) sorted by relevance
86 TimeValue() : seconds_(0), nanos_(0) {} in TimeValue()92 : seconds_( seconds ), nanos_( nanos ) { this->normalize(); } in seconds_()98 : seconds_( 0 ) , nanos_ ( 0 ) { in TimeValue()101 nanos_ = static_cast<NanoSecondsType>( (new_time - in TimeValue()120 this->nanos_ += that.nanos_ ;130 this->nanos_ -= that.nanos_ ;147 if ( this->nanos_ > that.nanos_ ) return 1;163 if ( this->nanos_ >= that.nanos_ ) return 1;172 (this->nanos_ == that.nanos_);203 NanoSecondsType nanoseconds() const { return nanos_; } in nanoseconds()[all …]
33 if ( nanos_ >= NANOSECONDS_PER_SECOND ) { in normalize()36 nanos_ -= NANOSECONDS_PER_SECOND; in normalize()37 } while ( nanos_ >= NANOSECONDS_PER_SECOND ); in normalize()38 } else if (nanos_ <= -NANOSECONDS_PER_SECOND ) { in normalize()41 nanos_ += NANOSECONDS_PER_SECOND; in normalize()42 } while (nanos_ <= -NANOSECONDS_PER_SECOND); in normalize()45 if (seconds_ >= 1 && nanos_ < 0) { in normalize()47 nanos_ += NANOSECONDS_PER_SECOND; in normalize()48 } else if (seconds_ < 0 && nanos_ > 0) { in normalize()50 nanos_ -= NANOSECONDS_PER_SECOND; in normalize()