Home
last modified time | relevance | path

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

/external/adhd/cras/src/server/
Dcras_server_metrics.c822 struct timespec now, time_since; in cras_server_metrics_missed_cb_frequency() local
827 subtract_timespecs(&now, &stream->start_ts, &time_since); in cras_server_metrics_missed_cb_frequency()
828 seconds = (double)time_since.tv_sec + time_since.tv_nsec / 1000000000.0; in cras_server_metrics_missed_cb_frequency()
858 subtract_timespecs(&now, &stream->first_missed_cb_ts, &time_since); in cras_server_metrics_missed_cb_frequency()
859 seconds = (double)time_since.tv_sec + time_since.tv_nsec / 1000000000.0; in cras_server_metrics_missed_cb_frequency()
895 struct timespec time_since; in cras_server_metrics_missed_cb_first_time() local
899 &time_since); in cras_server_metrics_missed_cb_first_time()
900 data.value = (unsigned)time_since.tv_sec; in cras_server_metrics_missed_cb_first_time()
925 struct timespec now, time_since; in cras_server_metrics_missed_cb_second_time() local
929 subtract_timespecs(&now, &stream->first_missed_cb_ts, &time_since); in cras_server_metrics_missed_cb_second_time()
[all …]
Daudio_thread.c490 struct timespec now, time_since; in append_dev_dump_info() local
506 subtract_timespecs(&now, &adev->dev->open_ts, &time_since); in append_dev_dump_info()
507 di->runtime_sec = time_since.tv_sec; in append_dev_dump_info()
508 di->runtime_nsec = time_since.tv_nsec; in append_dev_dump_info()
529 struct timespec now, time_since; in append_stream_dump_info() local
554 subtract_timespecs(&now, &stream->stream->start_ts, &time_since); in append_stream_dump_info()
555 si->runtime_sec = time_since.tv_sec; in append_stream_dump_info()
556 si->runtime_nsec = time_since.tv_nsec; in append_stream_dump_info()
/external/adhd/cras/src/common/
Dcras_util.h180 struct timespec now, time_since; in cras_frames_since_time() local
186 subtract_timespecs(&now, beg, &time_since); in cras_frames_since_time()
187 return cras_time_to_frames(&time_since, rate); in cras_frames_since_time()
/external/autotest/client/tests/aiostress/
Daio-stress.c259 static double time_since(struct timeval *start_tv, struct timeval *stop_tv) in time_since() function
282 return time_since(start_tv, &stop_time); in time_since_now()
293 delta = time_since(start_tv, stop_tv); in calc_latency()
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daio-stress.c261 static double time_since(struct timeval *start_tv, struct timeval *stop_tv) in time_since() function
284 return time_since(start_tv, &stop_time); in time_since_now()
295 delta = time_since(start_tv, stop_tv); in calc_latency()