| /third_party/ulib/musl/src/time/ |
| A D | clock.c | 7 struct timespec ts; in clock() local 9 if (__clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts)) in clock() 12 if (ts.tv_sec > LONG_MAX / 1000000 || ts.tv_nsec / 1000 > LONG_MAX - 1000000 * ts.tv_sec) in clock() 15 return ts.tv_sec * 1000000 + ts.tv_nsec / 1000; in clock()
|
| A D | time.c | 6 struct timespec ts; in time() local 7 __clock_gettime(CLOCK_REALTIME, &ts); in time() 9 *t = ts.tv_sec; in time() 10 return ts.tv_sec; in time()
|
| A D | gettimeofday.c | 5 struct timespec ts; in gettimeofday() local 8 clock_gettime(CLOCK_REALTIME, &ts); in gettimeofday() 9 tv->tv_sec = ts.tv_sec; in gettimeofday() 10 tv->tv_usec = (int)ts.tv_nsec / 1000; in gettimeofday()
|
| A D | ftime.c | 5 struct timespec ts; in ftime() local 6 clock_gettime(CLOCK_REALTIME, &ts); in ftime() 7 tp->time = ts.tv_sec; in ftime() 8 tp->millitm = ts.tv_nsec / 1000000; in ftime()
|
| A D | clock_gettime.c | 11 int __clock_gettime(clockid_t clk, struct timespec* ts) { in __clock_gettime() argument 33 ts->tv_sec = now / ZX_SEC(1); in __clock_gettime() 34 ts->tv_nsec = now % ZX_SEC(1); in __clock_gettime()
|
| A D | timespec_get.c | 7 int timespec_get(struct timespec* ts, int base) { in timespec_get() argument 10 int ret = __clock_gettime(CLOCK_REALTIME, ts); in timespec_get()
|
| A D | clock_getres.c | 4 int clock_getres(clockid_t clk, struct timespec* ts) { in clock_getres() argument
|
| A D | clock_settime.c | 4 int clock_settime(clockid_t clk, const struct timespec* ts) { in clock_settime() argument
|
| /third_party/ulib/musl/src/temp/ |
| A D | __randname.c | 10 struct timespec ts; in __randname() local 13 __clock_gettime(CLOCK_REALTIME, &ts); in __randname() 14 r = ts.tv_nsec * 65537 ^ ((uintptr_t)&ts / 16 + (uintptr_t) template); in __randname()
|
| /third_party/ulib/musl/src/stat/ |
| A D | futimesat.c | 8 struct timespec ts[2]; in __futimesat() local 16 ts[i].tv_sec = times[i].tv_sec; in __futimesat() 17 ts[i].tv_nsec = times[i].tv_usec * 1000; in __futimesat() 20 return utimensat(dirfd, pathname, times ? ts : 0, 0); in __futimesat()
|
| /third_party/ulib/musl/include/sys/ |
| A D | time.h | 55 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ argument 56 ((ts)->tv_sec = (tv)->tv_sec, (ts)->tv_nsec = (tv)->tv_usec * 1000, (void)0) 57 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ argument 58 ((tv)->tv_sec = (ts)->tv_sec, (tv)->tv_usec = (ts)->tv_nsec / 1000, (void)0)
|
| /third_party/ulib/musl/src/locale/ |
| A D | __mo_lookup.c | 26 uint32_t ts = swapc(mo[t + 2 * (b + n / 2) + 1], sw); in __mo_lookup() local 27 if (ts >= size || tl >= size - ts || ((char*)p)[ts + tl]) in __mo_lookup() 29 return (char*)p + ts; in __mo_lookup()
|
| /third_party/ulib/jemalloc/src/ |
| A D | nstime.c | 106 struct timespec ts; in nstime_get() local 108 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); in nstime_get() 109 nstime_init2(time, ts.tv_sec, ts.tv_nsec); in nstime_get() 116 struct timespec ts; in nstime_get() local 118 clock_gettime(CLOCK_MONOTONIC, &ts); in nstime_get() 119 nstime_init2(time, ts.tv_sec, ts.tv_nsec); in nstime_get()
|
| /third_party/ulib/musl/src/network/ |
| A D | res_mkquery.c | 10 struct timespec ts; in __res_mkquery() local 36 clock_gettime(CLOCK_REALTIME, &ts); in __res_mkquery() 37 id = (ts.tv_nsec + ts.tv_nsec / 65536UL) & 0xffff; in __res_mkquery()
|
| A D | res_msend.c | 16 struct timespec ts; in mtime() local 17 clock_gettime(CLOCK_REALTIME, &ts); in mtime() 18 return (unsigned long)ts.tv_sec * 1000 + ts.tv_nsec / 1000000; in mtime()
|
| /third_party/ulib/musl/src/thread/ |
| A D | cnd_timedwait.c | 24 const struct timespec* restrict ts) __TA_NO_THREAD_SAFETY_ANALYSIS { in cnd_timedwait() argument 28 if (ts && ts->tv_nsec >= 1000000000UL) in cnd_timedwait() 61 e = __timedwait(fut, seq, clock, ts); in cnd_timedwait()
|
| A D | mtx_timedlock.c | 7 int mtx_timedlock(mtx_t* restrict m, const struct timespec* restrict ts) { in mtx_timedlock() argument 9 int ret = __timespec_to_deadline(ts, CLOCK_REALTIME, &deadline); in mtx_timedlock()
|
| /third_party/ulib/musl/pthread/ |
| A D | pthread_cond_timedwait.c | 34 const struct timespec* restrict ts) { in pthread_cond_timedwait() argument 41 if (ts && (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000L)) in pthread_cond_timedwait() 75 e = __timedwait(fut, seq, clock, ts); in pthread_cond_timedwait()
|
| /third_party/ulib/musl/src/sched/ |
| A D | sched_rr_get_interval.c | 4 int sched_rr_get_interval(pid_t pid, struct timespec* ts) { in sched_rr_get_interval() argument
|
| /third_party/ulib/musl/src/ipc/ |
| A D | semtimedop.c | 6 int semtimedop(int id, struct sembuf* buf, size_t n, const struct timespec* ts) { in semtimedop() argument
|
| /third_party/ulib/musl/stubs/ |
| A D | iostubs.c | 503 const struct timespec* restrict ts, const sigset_t* restrict mask) { in stub_pselect() argument
|
| /third_party/ulib/jemalloc/ |
| A D | configure.ac | 1459 struct timespec ts; 1461 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); 1472 struct timespec ts; 1474 clock_gettime(CLOCK_MONOTONIC, &ts);
|
| /third_party/lib/acpica/ |
| A D | changes.txt | 5184 iASL: Implemented the -ts option to emit hex AML data in ASL format, as
|