Home
last modified time | relevance | path

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

/third_party/pulseaudio/src/pulsecore/
Dcore-rtclock.c187 struct timeval wc_now, rt_now; in pa_rtclock_from_wallclock() local
192 pa_rtclock_get(&rt_now); in pa_rtclock_from_wallclock()
197 pa_timeval_add(&rt_now, pa_timeval_diff(tv, &wc_now)); in pa_rtclock_from_wallclock()
199 pa_timeval_sub(&rt_now, pa_timeval_diff(&wc_now, tv)); in pa_rtclock_from_wallclock()
201 *tv = rt_now; in pa_rtclock_from_wallclock()
234 struct timeval wc_now, rt_now; in wallclock_from_rtclock() local
239 pa_rtclock_get(&rt_now); in wallclock_from_rtclock()
243 if (pa_timeval_cmp(&rt_now, tv) < 0) in wallclock_from_rtclock()
244 pa_timeval_add(&wc_now, pa_timeval_diff(tv, &rt_now)); in wallclock_from_rtclock()
246 pa_timeval_sub(&wc_now, pa_timeval_diff(&rt_now, tv)); in wallclock_from_rtclock()