Searched refs:NANOS_PER_SECOND (Results 1 – 8 of 8) 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 …]
23 import static io.opencensus.common.TimeUtils.NANOS_PER_SECOND;146 durationNanos = (int) (durationNanos - NANOS_PER_SECOND); in subtractTimestamp()149 durationNanos = (int) (durationNanos + NANOS_PER_SECOND); in subtractTimestamp()177 epochSec = TimeUtils.checkedAdd(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()178 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()186 long secs = TimeUtils.checkedAdd(epochSecond, floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()187 int nos = (int) floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond()
27 static final long NANOS_PER_SECOND = NANOS_PER_MILLI * MILLIS_PER_SECOND; field in TimeUtils
8 private static final double NANOS_PER_SECOND = 1000000000.0d; field in Timer33 return getDuration() / NANOS_PER_SECOND; in getSeconds()45 return nf.format(getDuration() / NANOS_PER_SECOND) + "s"; in toString()53 return nf.format(getDuration() / (NANOS_PER_SECOND * iterations)) + "s"; in toString()
456 private static final long NANOS_PER_SECOND = TimeUnit.SECONDS.toNanos(1);463 if (nanos <= -NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND) {464 seconds = checkedAdd(seconds, nanos / NANOS_PER_SECOND);465 nanos %= NANOS_PER_SECOND;468 nanos += NANOS_PER_SECOND; // no overflow since nanos is negative (and we're adding)472 nanos -= NANOS_PER_SECOND; // no overflow since nanos is positive (and we're subtracting)500 if (nanos < -999999999L || nanos >= NANOS_PER_SECOND) {
36 #define NANOS_PER_SECOND 1000000000 macro
197 return (int64_t) (currentTime.tv_sec - previousTime.tv_sec) * (int64_t) NANOS_PER_SECOND + in diffInNano()
118 private static final double NANOS_PER_SECOND = 1e9; field in RpczZPageHandler456 return duration.getNanos() / NANOS_PER_SECOND + duration.getSeconds(); in toDoubleSeconds()