Searched refs:end_clock (Results 1 – 2 of 2) sorted by relevance
9 static double interval_in_ms(timespec start_clock, timespec end_clock) in interval_in_ms() argument12 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()
30 static double interval_in_ms(time_value_t start_clock, time_value_t end_clock) { in interval_in_ms() argument32 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()