| /components/libc/posix/io/timerfd/ |
| A D | timerfd.c | 235 tfd->pre_time.tv_sec = 0; in timerfd_do_create() 395 old->it_interval.tv_sec = tfd->ittimer.it_interval.tv_sec; in timerfd_do_settime() 397 old->it_value.tv_sec = tfd->ittimer.it_value.tv_sec; in timerfd_do_settime() 419 current_time.tv_sec = 0; in timerfd_do_settime() 436 tfd->ittimer.it_interval.tv_sec = new->it_interval.tv_sec; in timerfd_do_settime() 437 tfd->ittimer.it_value.tv_sec = new->it_value.tv_sec - current_time.tv_sec; in timerfd_do_settime() 500 rt_int64_t tv_sec = 0; in timerfd_do_gettime() local 517 tv_sec = cur_time.tv_sec - tfd->pre_time.tv_sec; in timerfd_do_gettime() 521 cur->it_interval.tv_sec = tfd->ittimer.it_interval.tv_sec; in timerfd_do_gettime() 526 cur->it_value.tv_sec = tfd->ittimer.it_interval.tv_sec - tv_sec; in timerfd_do_gettime() [all …]
|
| /components/drivers/rtc/ |
| A D | dev_soft_rtc.c | 121 tv->tv_sec = init_time + _tv.tv_sec; in soft_rtc_control() 130 set_rtc_time(tv->tv_sec); in soft_rtc_control() 139 ts->tv_sec = init_time + _ts.tv_sec; in soft_rtc_control() 148 set_rtc_time(ts->tv_sec); in soft_rtc_control() 155 ts->tv_sec = 0; in soft_rtc_control() 164 tv->tv_sec = init_time + tick / RT_TICK_PER_SECOND; in soft_rtc_control() 172 set_rtc_time(tv->tv_sec); in soft_rtc_control() 179 ts->tv_sec = 0; in soft_rtc_control() 294 now = tv.tv_sec; in cmd_rtc_sync() 297 rt_kprintf("timestamps: %ld\n", (long)tv.tv_sec); in cmd_rtc_sync()
|
| A D | dev_rtc.c | 295 now = tv.tv_sec; in date() 300 rt_kprintf("timestamps: %ld\n", (long)tv.tv_sec); in date()
|
| /components/libc/compilers/common/ |
| A D | ctime.c | 487 tv->tv_sec = 0; in gettimeofday() 568 rsec = old_ts.tv_sec + rqtp->tv_sec - new_ts.tv_sec; in nanosleep() 617 res->tv_sec = 0; in clock_getres() 655 tp->tv_sec = 0; in clock_gettime() 703 int64_t ns = rqtp->tv_nsec - ts.tv_nsec + (rqtp->tv_sec - ts.tv_sec) * NANOSECOND_PER_SECOND; in clock_nanosleep() 776 second = time->tv_sec - tp.tv_sec - 1; in rt_timespec_to_tick() 781 second = time->tv_sec - tp.tv_sec; in rt_timespec_to_tick() 1017 timer->interval.tv_sec = 0; in timer_create() 1147 its->it_value.tv_sec = 0; in timer_gettime() 1232 timer->interval.tv_sec = value->it_interval.tv_sec; in timer_settime() [all …]
|
| /components/lwp/terminal/ |
| A D | bsd_porting.h | 513 #define timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) 514 #define timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) 516 (((tvp)->tv_sec == (uvp)->tv_sec) ? ((tvp)->tv_usec cmp(uvp)->tv_usec) \ 517 : ((tvp)->tv_sec cmp(uvp)->tv_sec)) 528 tv->tv_sec--; in timevalfix() 533 tv->tv_sec++; in timevalfix() 540 op1->tv_sec += op2->tv_sec; in timevaladd() 547 op1->tv_sec -= op2->tv_sec; in timevalsub() 555 rc = tv->tv_sec * RT_TICK_PER_SECOND; in tvtohz()
|
| /components/libc/cplusplus/cpp11/armclang/ |
| A D | clock.cpp | 18 __ts->tv_sec = t; in __ARM_TPL_clock_realtime() 26 __ts->tv_sec = t / RT_TICK_PER_SECOND; in __ARM_TPL_clock_monotonic()
|
| A D | thread.cpp | 77 tick = __req->tv_sec * RT_TICK_PER_SECOND + (__req->tv_nsec * RT_TICK_PER_SECOND)/ 1000000000; in __ARM_TPL_thread_nanosleep() 84 __rem->tv_sec = tick/RT_TICK_PER_SECOND; in __ARM_TPL_thread_nanosleep()
|
| A D | condvar.cpp | 147 …unsigned int timeout_ms = (__ts->tv_sec - now.tv_sec) * 1000 + (__ts->tv_nsec - now.tv_nsec) / 100… in __ARM_TPL_condvar_timedwait()
|
| /components/lwp/arch/aarch64/common/ |
| A D | vdso_data.c | 27 vdso_ts->tv_sec = initdata + vdso_ts->tv_sec; in rt_vdso_update_glob_time()
|
| /components/lwp/arch/risc-v/common/ |
| A D | vdso_data.c | 27 vdso_ts->tv_sec = initdata + vdso_ts->tv_sec; in rt_vdso_update_glob_time()
|
| /components/dfs/dfs_v2/filesystems/mqueue/ |
| A D | dfs_mqueue.c | 78 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in dfs_mqueue_stat() 80 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in dfs_mqueue_stat() 82 st->st_atim.tv_sec = vnode->atime.tv_sec; in dfs_mqueue_stat()
|
| /components/drivers/ktime/src/ |
| A D | boottime.c | 21 tv->tv_sec = ns / (1000ULL * 1000 * 1000); in rt_ktime_boottime_get_us() 44 ts->tv_sec = ns / (1000ULL * 1000 * 1000); in rt_ktime_boottime_get_ns()
|
| /components/drivers/hwtimer/ |
| A D | hwtimer.c | 42 float tv_sec; in timeout_calc() local 48 tv_sec = tv->sec + tv->usec/(float)1000000; in timeout_calc() 50 if (tv_sec < (1/(float)timer->freq)) in timeout_calc() 60 timeout = tv_sec/i; in timeout_calc() 65 devi = tv_sec - (counter / (float)timer->freq) * i; in timeout_calc() 70 timeout = tv_sec/i; in timeout_calc()
|
| /components/dfs/dfs_v1/filesystems/nfs/rpc/ |
| A D | clnt_generic.c | 76 tv.tv_sec = 5; in clnt_create() 80 tv.tv_sec = 1; in clnt_create()
|
| /components/lwp/vdso/user/arch/aarch64/ |
| A D | vdso_sys.c | 55 sec = vdso_ts->tv_sec; in __rt_vdso_getcoarse() 58 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse()
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | procfs.c | 305 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in dfs_procfs_stat() 307 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in dfs_procfs_stat() 309 st->st_atim.tv_sec = vnode->atime.tv_sec; in dfs_procfs_stat()
|
| /components/lwp/vdso/user/arch/risc-v/ |
| A D | vdso_sys.c | 62 sec = vdso_ts->tv_sec; in __rt_vdso_getcoarse() 65 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in __rt_vdso_getcoarse()
|
| /components/dfs/dfs_v2/filesystems/devfs/ |
| A D | devtmpfs.c | 277 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in devtmpfs_stat() 279 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in devtmpfs_stat() 281 st->st_atim.tv_sec = vnode->atime.tv_sec; in devtmpfs_stat()
|
| /components/dfs/dfs_v2/filesystems/ptyfs/ |
| A D | ptyfs.c | 448 st->st_mtim.tv_sec = vnode->mtime.tv_sec; in ptyfs_ops_stat() 450 st->st_ctim.tv_sec = vnode->ctime.tv_sec; in ptyfs_ops_stat() 452 st->st_atim.tv_sec = vnode->atime.tv_sec; in ptyfs_ops_stat()
|
| /components/libc/compilers/common/include/sys/ |
| A D | time.h | 54 time_t tv_sec; /* seconds */ member 89 time_t tv_sec; /* seconds */ member
|
| /components/libc/cplusplus/cpp11/gcc/ |
| A D | utils.cpp | 27 return time_point(duration(std::chrono::seconds(tp.tv_sec)) in now()
|
| /components/net/lwip/lwip-2.1.2/test/sockets/ |
| A D | sockets_stresstest.c | 195 tv.tv_sec = timeout_ms / 1000; in sockets_stresstest_wait_readable_select() 196 tv.tv_usec = (timeout_ms - (tv.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_select() 258 opt_on.tv_sec = timeout_ms / 1000; in sockets_stresstest_wait_readable_recvtimeo() 259 opt_on.tv_usec = (timeout_ms - (opt_on.tv_sec * 1000)) * 1000; in sockets_stresstest_wait_readable_recvtimeo() 260 opt_off.tv_sec = 0; in sockets_stresstest_wait_readable_recvtimeo()
|
| /components/dfs/dfs_v2/src/ |
| A D | dfs_posix.c | 205 attr.ia_atime.tv_sec = current_time; in utimensat() 209 attr.ia_atime.tv_sec = __times[0].tv_sec; in utimensat() 218 attr.ia_mtime.tv_sec = current_time; in utimensat() 222 attr.ia_mtime.tv_sec = __times[1].tv_sec; in utimensat()
|
| /components/libc/posix/io/poll/ |
| A D | select.c | 119 msec = (int)timeout->tv_sec * 1000 + (int)timeout->tv_usec / 1000; in select()
|
| /components/libc/posix/signal/ |
| A D | posix_signal.c | 175 …tick = timeout->tv_sec * RT_TICK_PER_SECOND + timeout->tv_nsec * RT_TICK_PER_SECOND / NANOSECOND_P… in sigtimedwait()
|