Lines Matching refs:time
26 #include <sys/time.h>
207 struct timespec time;
208 if (clock_gettime(CLOCK_MONOTONIC, &time) < 0) {
209 DHLOGE("Get current time failed");
211 tvSec = time.tv_sec;
212 tvNSec = time.tv_nsec;
361 struct timespec time;
363 int ret = clock_gettime(clockId, &time);
368 result = (time.tv_sec * AUDIO_NS_PER_SECOND) + time.tv_nsec;
376 DHLOGE("AbsoluteSleep invalid sleep time : %{public}" PRId64" ns", nanoTime);
379 struct timespec time;
380 time.tv_sec = nanoTime / AUDIO_NS_PER_SECOND;
381 time.tv_nsec = nanoTime - (time.tv_sec * AUDIO_NS_PER_SECOND);
384 ret = clock_nanosleep(clockId, TIMER_ABSTIME, &time, nullptr);