Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/utils/test/src/android/tools/
DTimeUtilsTest.kt32 Truth.assertThat(Timestamp.formatElapsedTimestamp(0)).isEqualTo("0ns") in canFormatElapsedTime()
33 Truth.assertThat(Timestamp.formatElapsedTimestamp(1000)).isEqualTo("1000ns") in canFormatElapsedTime()
34 Truth.assertThat(Timestamp.formatElapsedTimestamp(MILLISECOND - 1)).isEqualTo("999999ns") in canFormatElapsedTime()
35 Truth.assertThat(Timestamp.formatElapsedTimestamp(MILLISECOND)).isEqualTo("1ms0ns") in canFormatElapsedTime()
36 Truth.assertThat(Timestamp.formatElapsedTimestamp(10 * MILLISECOND)).isEqualTo("10ms0ns") in canFormatElapsedTime()
38 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND - 1)).isEqualTo("999ms999999ns") in canFormatElapsedTime()
39 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND)).isEqualTo("1s0ms0ns") in canFormatElapsedTime()
40 Truth.assertThat(Timestamp.formatElapsedTimestamp(SECOND + MILLISECOND)) in canFormatElapsedTime()
43 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE - 1)).isEqualTo("59s999ms999999ns") in canFormatElapsedTime()
44 Truth.assertThat(Timestamp.formatElapsedTimestamp(MINUTE)).isEqualTo("1m0s0ms0ns") in canFormatElapsedTime()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/
DTimestamp.kt191 fun formatElapsedTimestamp(timestampNs: Long): String { in formatElapsedTimestamp() method