Searched refs:nanos_ (Results 1 – 2 of 2) sorted by relevance
95 TimeValue() : seconds_(0), nanos_(0) {} in TimeValue()101 : seconds_( seconds ), nanos_( nanos ) { this->normalize(); } in seconds_()107 : seconds_( 0 ) , nanos_ ( 0 ) { in TimeValue()110 nanos_ = static_cast<NanoSecondsType>( (new_time - in TimeValue()129 this->nanos_ += that.nanos_ ;139 this->nanos_ -= that.nanos_ ;156 if ( this->nanos_ > that.nanos_ ) return 1;172 if ( this->nanos_ >= that.nanos_ ) return 1;181 (this->nanos_ == that.nanos_);212 NanoSecondsType nanoseconds() const { return nanos_; } in nanoseconds()[all …]
27 if ( nanos_ >= NANOSECONDS_PER_SECOND ) { in normalize()30 nanos_ -= NANOSECONDS_PER_SECOND; in normalize()31 } while ( nanos_ >= NANOSECONDS_PER_SECOND ); in normalize()32 } else if (nanos_ <= -NANOSECONDS_PER_SECOND ) { in normalize()35 nanos_ += NANOSECONDS_PER_SECOND; in normalize()36 } while (nanos_ <= -NANOSECONDS_PER_SECOND); in normalize()39 if (seconds_ >= 1 && nanos_ < 0) { in normalize()41 nanos_ += NANOSECONDS_PER_SECOND; in normalize()42 } else if (seconds_ < 0 && nanos_ > 0) { in normalize()44 nanos_ -= NANOSECONDS_PER_SECOND; in normalize()