Home
last modified time | relevance | path

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

/device/google/marlin/camera/usbcamcore/src/
DQCameraMjpegDecode.cpp128 static int mjpegd_timer_start(timespec *p_timer);
129 static int mjpegd_timer_get_elapsed(timespec *p_timer, int *elapsed_in_ms, uint8_t reset_start);
651 static int mjpegd_timer_start(timespec *p_timer) in mjpegd_timer_start() argument
653 if (!p_timer) in mjpegd_timer_start()
656 if (clock_gettime(CLOCK_REALTIME, p_timer)) in mjpegd_timer_start()
662 static int mjpegd_timer_get_elapsed(timespec *p_timer, int *elapsed_in_ms, uint8_t reset_start) in mjpegd_timer_get_elapsed() argument
671 diff = (long)(now.tv_sec - p_timer->tv_sec) * 1000; in mjpegd_timer_get_elapsed()
672 diff += (long)(now.tv_nsec - p_timer->tv_nsec) / 1000000; in mjpegd_timer_get_elapsed()
676 *p_timer = now; in mjpegd_timer_get_elapsed()