Searched refs:micros (Results 1 – 7 of 7) sorted by relevance
111 long micros = nanos / 1000; in nanosToMicros() local112 int microsInt = (int) micros; in nanosToMicros()113 if (microsInt != micros) { in nanosToMicros()
211 def FromMicroseconds(self, micros): argument213 self.seconds = micros // _MICROS_PER_SECOND214 self.nanos = (micros % _MICROS_PER_SECOND) * _NANOS_PER_MICROSECOND307 micros = _RoundTowardZero(self.nanos, _NANOS_PER_MICROSECOND)308 return self.seconds * _MICROS_PER_SECOND + micros324 def FromMicroseconds(self, micros): argument327 micros // _MICROS_PER_SECOND,328 (micros % _MICROS_PER_SECOND) * _NANOS_PER_MICROSECOND)
242 Duration TimeUtil::MicrosecondsToDuration(int64 micros) { in MicrosecondsToDuration() argument244 micros / kMicrosPerSecond, in MicrosecondsToDuration()245 (micros % kMicrosPerSecond) * kNanosPerMicrosecond); in MicrosecondsToDuration()297 Timestamp TimeUtil::MicrosecondsToTimestamp(int64 micros) { in MicrosecondsToTimestamp() argument299 micros / kMicrosPerSecond, in MicrosecondsToTimestamp()300 micros % kMicrosPerSecond * kNanosPerMicrosecond); in MicrosecondsToTimestamp()
102 static Duration MicrosecondsToDuration(int64 micros);124 static Timestamp MicrosecondsToTimestamp(int64 micros);
293 int micros = (int) (dice * MAX_MICROS_DELAY); in main() local294 usleep(micros); in main()
541 void tickRealtime(long micros) { in tickRealtime() argument542 mRealtimeMicros += micros; in tickRealtime()545 void tickThreadTime(long micros) { in tickThreadTime() argument546 mThreadTimeMicros += micros; in tickThreadTime()
658 auto microsToNanos = [](uint64_t micros) { in TEST_P() argument660 return micros == UINT64_MAX ? UINT64_MAX : kNanosPerMicro * micros; in TEST_P()