Home
last modified time | relevance | path

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

/third_party/musl/libc-test/src/functionalext/common/
Dpthread_util.h66 const unsigned int nsecPerSec = NSEC_PER_SEC; in GetDelayedTimeByClockid() local
70 ts->tv_sec = tsNow.tv_sec + (tsNow.tv_nsec + setTimeNs) / nsecPerSec; in GetDelayedTimeByClockid()
71 ts->tv_nsec = (tsNow.tv_nsec + setTimeNs) % nsecPerSec; in GetDelayedTimeByClockid()
77 const unsigned int nsecPerSec = NSEC_PER_SEC; in GetTimeDiff() local
78 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff()
/third_party/musl/libc-test/src/functionalext/thread/
Dpthread_cond_timedwait.c243 const unsigned int nsecPerSec = NSEC_PER_SEC; in ClockWaitTimedwait2() local
249 ts.tv_sec = ts.tv_sec + (ts.tv_nsec + nsecPer100Ms) / nsecPerSec; in ClockWaitTimedwait2()
250 ts.tv_nsec = (ts.tv_nsec + nsecPer100Ms) % nsecPerSec; in ClockWaitTimedwait2()
321 const unsigned int nsecPerSec = NSEC_PER_SEC; in ClockWaitTimedwait4() local
327 ts.tv_sec = ts.tv_sec + (ts.tv_nsec + nsecPer100Ms) / nsecPerSec; in ClockWaitTimedwait4()
328 ts.tv_nsec = (ts.tv_nsec + nsecPer100Ms) % nsecPerSec; in ClockWaitTimedwait4()
390 const unsigned int nsecPerSec = NSEC_PER_SEC; in ClockWaitTimeMismatch() local
396 ts.tv_sec = ts.tv_sec + (ts.tv_nsec + nsecPer100Ms) / nsecPerSec; in ClockWaitTimeMismatch()
397 ts.tv_nsec = (ts.tv_nsec + nsecPer100Ms) % nsecPerSec; in ClockWaitTimeMismatch()
417 const unsigned int nsecPerSec = NSEC_PER_SEC; in ClockWaitTimeMismatch2() local
[all …]