Home
last modified time | relevance | path

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

/third_party/ulib/musl/src/time/
A Dclock.c7 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 Dtime.c6 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 Dgettimeofday.c5 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 Dftime.c5 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 Dclock_gettime.c11 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 Dtimespec_get.c7 int timespec_get(struct timespec* ts, int base) { in timespec_get() argument
10 int ret = __clock_gettime(CLOCK_REALTIME, ts); in timespec_get()
A Dclock_getres.c4 int clock_getres(clockid_t clk, struct timespec* ts) { in clock_getres() argument
A Dclock_settime.c4 int clock_settime(clockid_t clk, const struct timespec* ts) { in clock_settime() argument
/third_party/ulib/musl/src/temp/
A D__randname.c10 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 Dfutimesat.c8 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 Dtime.h55 #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.c26 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 Dnstime.c106 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 Dres_mkquery.c10 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 Dres_msend.c16 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 Dcnd_timedwait.c24 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 Dmtx_timedlock.c7 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 Dpthread_cond_timedwait.c34 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 Dsched_rr_get_interval.c4 int sched_rr_get_interval(pid_t pid, struct timespec* ts) { in sched_rr_get_interval() argument
/third_party/ulib/musl/src/ipc/
A Dsemtimedop.c6 int semtimedop(int id, struct sembuf* buf, size_t n, const struct timespec* ts) { in semtimedop() argument
/third_party/ulib/musl/stubs/
A Diostubs.c503 const struct timespec* restrict ts, const sigset_t* restrict mask) { in stub_pselect() argument
/third_party/ulib/jemalloc/
A Dconfigure.ac1459 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 Dchanges.txt5184 iASL: Implemented the -ts option to emit hex AML data in ASL format, as

Completed in 53 milliseconds