Home
last modified time | relevance | path

Searched refs:nanoAdjustment (Results 1 – 1 of 1) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java179 long nanoAdjustment = getNanos() + nanosToAdd; // safe int + NANOS_PER_SECOND in plus() local
180 return ofEpochSecond(epochSec, nanoAdjustment); in plus()
185 private static Timestamp ofEpochSecond(long epochSecond, long nanoAdjustment) { in ofEpochSecond() argument
186 long secs = TimeUtils.checkedAdd(epochSecond, floorDiv(nanoAdjustment, NANOS_PER_SECOND)); in ofEpochSecond()
187 int nos = (int) floorMod(nanoAdjustment, NANOS_PER_SECOND); in ofEpochSecond()