Searched refs:duration_clock (Results 1 – 4 of 4) sorted by relevance
11 double duration_clock; in interval_in_ms() local13 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()19 return duration_clock; in interval_in_ms()
31 double duration_clock; in interval_in_ms() local33 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()39 return duration_clock; in interval_in_ms()