Searched refs:NANOS_PER_SECOND (Results 1 – 3 of 3) sorted by relevance
55 private static final long NANOS_PER_SECOND = 1000000000; field in TimeUtil105 if (timestamp.getNanos() < 0 || timestamp.getNanos() >= NANOS_PER_SECOND) { in toString()339 return normalizedTimestamp(nanoseconds / NANOS_PER_SECOND, in createTimestampFromNanos()340 (int) (nanoseconds % NANOS_PER_SECOND)); in createTimestampFromNanos()347 return normalizedDuration(nanoseconds / NANOS_PER_SECOND, in createDurationFromNanos()348 (int) (nanoseconds % NANOS_PER_SECOND)); in createDurationFromNanos()355 return timestamp.getSeconds() * NANOS_PER_SECOND + timestamp.getNanos(); in toNanos()362 return duration.getSeconds() * NANOS_PER_SECOND + duration.getNanos(); in toNanos()456 new BigInteger(String.valueOf(NANOS_PER_SECOND));470 new BigInteger(String.valueOf(NANOS_PER_SECOND))).longValue(); in createDurationFromBigInteger()[all …]
118 #define NANOS_PER_SECOND 1000000000 macro
215 return (int64_t) (currentTime.tv_sec - previousTime.tv_sec) * (int64_t) NANOS_PER_SECOND + in diffInNano()