Home
last modified time | relevance | path

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

/external/skia/bench/
DBenchSysTimer_posix.cpp13 static double intervalInMSec(const timespec start_clock in intervalInMSec() argument
17 if ((end_clock.tv_nsec - start_clock.tv_nsec) < 0) { in intervalInMSec()
18 duration_clock = (end_clock.tv_sec - start_clock.tv_sec-1)*1000; in intervalInMSec()
19 duration_clock += (1000000000 + end_clock.tv_nsec - start_clock.tv_nsec) in intervalInMSec()
22 duration_clock = (end_clock.tv_sec - start_clock.tv_sec)*1000; in intervalInMSec()
23 duration_clock += (end_clock.tv_nsec - start_clock.tv_nsec) / 1000000.0; in intervalInMSec()
DBenchSysTimer_mach.cpp36 static double intervalInMSec(const time_value_t start_clock in intervalInMSec() argument
40 if ((end_clock.microseconds - start_clock.microseconds) < 0) { in intervalInMSec()
41 duration_clock = (end_clock.seconds - start_clock.seconds-1)*1000; in intervalInMSec()
44 - start_clock.microseconds) / 1000.0; in intervalInMSec()
46 duration_clock = (end_clock.seconds - start_clock.seconds)*1000; in intervalInMSec()
47 duration_clock += (end_clock.microseconds - start_clock.microseconds) in intervalInMSec()