Home
last modified time | relevance | path

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

/external/opencensus-java/api/src/test/java/io/opencensus/common/
DTimestampTest.java117 assertThat(timestamp.addNanos(0)).isEqualTo(timestamp); in timestampAddNanos()
118 assertThat(timestamp.addNanos(999999777)).isEqualTo(Timestamp.create(1235, 0)); in timestampAddNanos()
119 assertThat(timestamp.addNanos(1300200500)).isEqualTo(Timestamp.create(1235, 300200723)); in timestampAddNanos()
120 assertThat(timestamp.addNanos(1999999777)).isEqualTo(Timestamp.create(1236, 0)); in timestampAddNanos()
121 assertThat(timestamp.addNanos(9876543789L)).isEqualTo(Timestamp.create(1243, 876544012)); in timestampAddNanos()
122 assertThat(timestamp.addNanos(Long.MAX_VALUE)) in timestampAddNanos()
129 assertThat(timestamp.addNanos(-223)).isEqualTo(Timestamp.create(1234, 0)); in timestampAddNanos_Negative()
130 assertThat(timestamp.addNanos(-1000000223)).isEqualTo(Timestamp.create(1233, 0)); in timestampAddNanos_Negative()
131 assertThat(timestamp.addNanos(-1300200500)).isEqualTo(Timestamp.create(1232, 699799723)); in timestampAddNanos_Negative()
132 assertThat(timestamp.addNanos(-4123456213L)).isEqualTo(Timestamp.create(1229, 876544010)); in timestampAddNanos_Negative()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
DRecordEventsSpanImplTest.java177 .isEqualTo(timestamp.addNanos(100)); in toSpanData_ActiveSpan()
181 .isEqualTo(timestamp.addNanos(200)); in toSpanData_ActiveSpan()
187 .isEqualTo(timestamp.addNanos(300)); in toSpanData_ActiveSpan()
238 .isEqualTo(timestamp.addNanos(100)); in toSpanData_EndedSpan()
242 .isEqualTo(timestamp.addNanos(200)); in toSpanData_EndedSpan()
248 .isEqualTo(timestamp.addNanos(300)); in toSpanData_EndedSpan()
255 assertThat(spanData.getEndTimestamp()).isEqualTo(timestamp.addNanos(400)); in toSpanData_EndedSpan()
434 .isEqualTo(timestamp.addNanos(100L * (maxNumberOfAnnotations + i))); in droppingAnnotations()
443 .isEqualTo(timestamp.addNanos(100L * (maxNumberOfAnnotations + i))); in droppingAnnotations()
479 .isEqualTo(timestamp.addNanos(100L * (maxNumberOfNetworkEvents + i))); in droppingNetworkEvents()
[all …]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/internal/
DTimestampConverter.java44 return timestamp.addNanos(nanoTime - this.nanoTime); in convertNanoTime()
/external/opencensus-java/api/src/main/java/io/opencensus/common/
DTimestamp.java118 public Timestamp addNanos(long nanosToAdd) { in addNanos() method in Timestamp