Home
last modified time | relevance | path

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

/external/skia/tools/timer/
DSysTimer_posix.cpp9 static double interval_in_ms(timespec start_clock, timespec end_clock) in interval_in_ms() argument
12 if ((end_clock.tv_nsec - start_clock.tv_nsec) < 0) { in interval_in_ms()
13 duration_clock = (end_clock.tv_sec - start_clock.tv_sec - 1) * 1000; in interval_in_ms()
14 duration_clock += (1000000000 + end_clock.tv_nsec - start_clock.tv_nsec) / 1000000.0; in interval_in_ms()
16 duration_clock = (end_clock.tv_sec - start_clock.tv_sec) * 1000; in interval_in_ms()
17 duration_clock += (end_clock.tv_nsec - start_clock.tv_nsec) / 1000000.0; in interval_in_ms()
DSysTimer_mach.cpp30 static double interval_in_ms(time_value_t start_clock, time_value_t end_clock) { in interval_in_ms() argument
32 if ((end_clock.microseconds - start_clock.microseconds) < 0) { in interval_in_ms()
33 duration_clock = (end_clock.seconds - start_clock.seconds-1) * 1000; in interval_in_ms()
34 duration_clock += (1000000 + end_clock.microseconds - start_clock.microseconds) / 1000.0; in interval_in_ms()
36 duration_clock = (end_clock.seconds - start_clock.seconds) * 1000; in interval_in_ms()
37 duration_clock += (end_clock.microseconds - start_clock.microseconds) / 1000.0; in interval_in_ms()