Home
last modified time | relevance | path

Searched refs:tv (Results 1 - 25 of 518) sorted by relevance

12345678910>>...21

/third_party/pulseaudio/src/pulse/
H A Dtimeval.c37 struct timeval *pa_gettimeofday(struct timeval *tv) { in pa_gettimeofday() argument
38 pa_assert(tv); in pa_gettimeofday()
61 tv->tv_sec = (time_t) (t / PA_USEC_PER_SEC); in pa_gettimeofday()
62 tv->tv_usec = (suseconds_t) (t % PA_USEC_PER_SEC); in pa_gettimeofday()
65 pa_assert_se(gettimeofday(tv, NULL) == 0); in pa_gettimeofday()
70 return tv; in pa_gettimeofday()
118 pa_usec_t pa_timeval_age(const struct timeval *tv) { in pa_timeval_age() argument
120 pa_assert(tv); in pa_timeval_age()
122 return pa_timeval_diff(pa_gettimeofday(&now), tv); in pa_timeval_age()
125 struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_ argument
156 pa_timeval_sub(struct timeval *tv, pa_usec_t v) pa_timeval_sub() argument
187 pa_timeval_store(struct timeval *tv, pa_usec_t v) pa_timeval_store() argument
203 pa_timeval_load(const struct timeval *tv) pa_timeval_load() argument
[all...]
/third_party/alsa-lib/test/
H A Dqueue_timer.c6 void normalize(struct timeval *tv) in normalize() argument
8 if (tv->tv_sec == 0) { in normalize()
9 while (tv->tv_usec <= -1000000) { tv->tv_usec += 1000000; --tv->tv_sec; } in normalize()
10 while (tv->tv_usec >= 1000000) { tv->tv_usec -= 1000000; ++tv->tv_sec; } in normalize()
11 } else if (tv->tv_sec < 0) { in normalize()
12 while (tv in normalize()
79 struct timeval tv, diff, diffdiff; main() local
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dcore-rtclock.c59 pa_usec_t pa_rtclock_age(const struct timeval *tv) { in pa_rtclock_age() argument
61 pa_assert(tv); in pa_rtclock_age()
63 return pa_timeval_diff(pa_rtclock_get(&now), tv); in pa_rtclock_age()
66 struct timeval *pa_rtclock_get(struct timeval *tv) { in pa_rtclock_get() argument
75 tv->tv_sec = val / PA_NSEC_PER_SEC; in pa_rtclock_get()
76 tv->tv_usec = (val % PA_NSEC_PER_SEC) / PA_NSEC_PER_USEC; in pa_rtclock_get()
78 return tv; in pa_rtclock_get()
95 pa_assert(tv); in pa_rtclock_get()
97 tv->tv_sec = ts.tv_sec; in pa_rtclock_get()
98 tv in pa_rtclock_get()
186 pa_rtclock_from_wallclock(struct timeval *tv) pa_rtclock_from_wallclock() argument
233 wallclock_from_rtclock(struct timeval *tv) wallclock_from_rtclock() argument
253 pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock) pa_timeval_rtstore() argument
[all...]
/third_party/python/Lib/tkinter/test/test_ttk/
H A Dtest_widgets.py1301 self.tv = self.create(padding=0)
1349 self.tv.pack()
1350 self.assertEqual(self.tv.bbox(''), '')
1351 self.tv.update()
1353 item_id = self.tv.insert('', 'end')
1354 children = self.tv.get_children()
1357 bbox = self.tv.bbox(children[0])
1361 self.tv['columns'] = ['test']
1362 self.tv.column('test', width=50)
1363 bbox_column0 = self.tv
[all...]
/third_party/curl/lib/
H A Dtimediff.c33 * NULL IF tv is NULL or ms < 0 (eg. no timeout -> blocking select)
34 * tv with 0 in both fields IF ms == 0 (eg. 0ms timeout -> polling select)
35 * tv with converted fields IF ms > 0 (eg. >0ms timeout -> waiting select)
37 struct timeval *curlx_mstotv(struct timeval *tv, timediff_t ms) in curlx_mstotv() argument
39 if(!tv) in curlx_mstotv()
54 tv->tv_sec = (time_t)tv_sec; in curlx_mstotv()
55 tv->tv_usec = (suseconds_t)tv_usec; in curlx_mstotv()
62 tv->tv_sec = (long)tv_sec; in curlx_mstotv()
63 tv->tv_usec = (long)tv_usec; in curlx_mstotv()
70 tv in curlx_mstotv()
85 curlx_tvtoms(struct timeval *tv) curlx_tvtoms() argument
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/legacy/
H A Dlutimes.c35 static struct timeval tv[TEST_SIZE] = {{0L, 0L}, {0L, 0L}}; in lutimes_0100() local
36 tv[0].tv_sec = s.st_atime; in lutimes_0100()
37 tv[0].tv_usec = 0; in lutimes_0100()
38 tv[1].tv_sec = s.st_mtime; in lutimes_0100()
39 tv[1].tv_usec = 0; in lutimes_0100()
48 ret = lutimes("./lutimes_0100.txt", tv); in lutimes_0100()
63 static struct timeval tv[TEST_SIZE] = {{0L, 0L}, {0L, 0L}}; in lutimes_0200() local
64 ret = lutimes("./lutimes_0200.txt", tv); in lutimes_0200()
77 static struct timeval tv[TEST_SIZE] = {{0L, 0L}, {0L, 0L}}; in lutimes_time64_0100() local
78 tv[ in lutimes_time64_0100()
[all...]
H A Dfutimes.c36 static struct timeval tv[2] = {{0L, 0L}, {0L, 0L}}; in futimes_0100() local
37 tv[0].tv_sec = s.st_atime; in futimes_0100()
38 tv[0].tv_usec = 0; in futimes_0100()
39 tv[1].tv_sec = s.st_mtime; in futimes_0100()
40 tv[1].tv_usec = 0; in futimes_0100()
42 ret = futimes(fd, tv); in futimes_0100()
69 static struct timeval tv[2] = {{0L, 0L}, {0L, 0L}}; in futimes_0300() local
71 ret = futimes(fd, tv); in futimes_0300()
84 static struct timeval tv[2] = {{0L, 0L}, {0L, 0L}}; in futimes_time64_0100() local
85 tv[ in futimes_time64_0100()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dsettimeofday.c26 * @tc.desc : Test that the function returns a value when tv points to a null pointer
39 * @tc.desc : Test the return value of the function when usec in the parameter tv is 1000000ULL
44 struct timeval tv; in settimeofday_0200() local
45 tv.tv_sec = 0; in settimeofday_0200()
46 tv.tv_usec = 1000000ULL; in settimeofday_0200()
48 int result = settimeofday(&tv, NULL); in settimeofday_0200()
61 struct timeval tv; in settimeofday_0300() local
62 tv.tv_sec = 864000 + 36000 + 60; in settimeofday_0300()
63 tv.tv_usec = 0; in settimeofday_0300()
65 int result = settimeofday(&tv, NUL in settimeofday_0300()
78 struct timeval tv; settimeofday_time64_0200() local
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
H A D11-1.c47 struct timeval tv; in main() local
62 tv.tv_sec = 0; in main()
63 tv.tv_usec = 0; in main()
64 select(0, NULL, NULL, NULL, &tv); in main()
73 tv.tv_sec = 1; in main()
74 tv.tv_usec = 0; in main()
75 select(0, NULL, NULL, NULL, &tv); in main()
78 struct timeval tv; in main() local
86 tv.tv_sec = 1; in main()
87 tv in main()
[all...]
/third_party/benchmark/src/
H A Dcycleclock.h168 struct timeval tv; in Now()
169 gettimeofday(&tv, nullptr); in Now()
170 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
174 struct timeval tv; in Now()
175 gettimeofday(&tv, nullptr); in Now()
176 return static_cast<int64_t>(tv.tv_sec) * 1000000 + tv.tv_usec; in Now()
178 struct timeval tv; in Now()
179 gettimeofday(&tv, nullpt in Now()
[all...]
/third_party/libcoap/src/
H A Dcoap_time.c64 struct timespec tv; in coap_clock_init() local
65 clock_gettime(COAP_CLOCK, &tv); in coap_clock_init()
67 struct timeval tv; in coap_clock_init()
68 gettimeofday(&tv, NULL); in coap_clock_init()
71 coap_clock_offset = tv.tv_sec; in coap_clock_init()
88 struct timespec tv; in coap_ticks() local
89 clock_gettime(COAP_CLOCK, &tv); in coap_ticks()
96 tmp = SHR_FP(tv.tv_nsec * Q(FRAC, (COAP_TICKS_PER_SECOND/1000000000.0)), FRAC); in coap_ticks()
100 struct timeval tv; in coap_ticks() local
101 gettimeofday(&tv, NUL in coap_ticks()
[all...]
/third_party/skia/third_party/externals/microhttpd/src/examples/
H A Dbenchmark.c69 struct timeval *tv = *con_cls; in completed_callback() local
73 if (NULL == tv) in completed_callback()
78 if (tve.tv_usec >= tv->tv_usec) in completed_callback()
79 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback()
80 + (tve.tv_usec - tv->tv_usec); in completed_callback()
82 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback()
83 - tv->tv_usec + tve.tv_usec; in completed_callback()
88 free (tv); in completed_callback()
96 struct timeval *tv = malloc (sizeof (struct timeval)); in uri_logger_cb() local
98 if (NULL != tv) in uri_logger_cb()
[all...]
H A Dbenchmark_https.c69 struct timeval *tv = *con_cls; in completed_callback() local
73 if (NULL == tv) in completed_callback()
78 if (tve.tv_usec >= tv->tv_usec) in completed_callback()
79 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback()
80 + (tve.tv_usec - tv->tv_usec); in completed_callback()
82 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback()
83 - tv->tv_usec + tve.tv_usec; in completed_callback()
88 free (tv); in completed_callback()
96 struct timeval *tv = malloc (sizeof (struct timeval)); in uri_logger_cb() local
98 if (NULL != tv) in uri_logger_cb()
[all...]
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
H A Dlinux_hrtimer.c112 hrtimer->set_time_reload = (UINT32)((hrtimer->_softexpires.tv.sec * US_PER_SECOND + in HrtimerHandlerRunAddNode()
113 hrtimer->_softexpires.tv.usec) * HRTIMER_PERUS); in HrtimerHandlerRunAddNode()
143 timer._softexpires.tv.usec = hrtimer->_softexpires.tv.usec; in HrtimerHandlerRun()
144 timer._softexpires.tv.sec = hrtimer->_softexpires.tv.sec; in HrtimerHandlerRun()
189 (curHandler->_softexpires.tv.sec == timer->_softexpires.tv.sec) && in GetHandlerNodePosition()
190 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv in GetHandlerNodePosition()
[all...]
/third_party/toybox/toys/net/
H A Dsntp.c48 struct timespec tv; in lunchtime() local
50 clock_gettime(CLOCK_REALTIME, &tv); in lunchtime()
51 if (diff) nanomove(&tv, diff); in lunchtime()
53 if (television) *television = tv; in lunchtime()
58 return ((tv.tv_sec+SEVENTIES)<<32)+(((long long)tv.tv_nsec)<<32)/1000000000; in lunchtime()
62 static void doublyso(unsigned long long now, struct timespec *tv) in doublyso() argument
65 tv->tv_sec = (now>>32) + (1LL<<32)*!(now&(1LL<<63)); in doublyso()
66 tv->tv_sec -= SEVENTIES; // Force signed math for Y2038 fixup in doublyso()
67 tv in doublyso()
72 struct timespec tv, tv2; sntp_main() local
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_textview.py8 from idlelib import textview as tv namespace
35 class VW(tv.ViewWindow): # Used in ViewWindowTest.
75 scroll = tv.AutoHideScrollbar(root)
94 frame = tv.ScrollableTextFrame(self.root, wrap=wrap, **kwargs)
130 cls.frame = tv.ViewFrame(root, 'test text')
149 cls.orig_error = tv.showerror
150 tv.showerror = Mbox_func()
154 tv.showerror = cls.orig_error
158 view = tv.view_text(root, 'Title', 'test text', modal=False)
159 self.assertIsInstance(view, tv
[all...]
/third_party/musl/src/select/
H A Dselect.c10 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv) in select() argument
12 time_t s = tv ? tv->tv_sec : 0; in select()
13 suseconds_t us = tv ? tv->tv_usec : 0; in select()
32 tv ? ((long long[]){s, ns}) : 0, in select()
41 tv ? ((long long[]){s, us}) : 0); in select()
43 tv ? ((long[]){s, us}) : 0); in select()
48 tv ? ((long long[]){s, ns}) : 0, ((syscall_arg_t[]){ 0, _NSIG/8 })); in select()
50 tv in select()
[all...]
/third_party/musl/src/legacy/
H A Dlutimes.c6 int lutimes(const char *filename, const struct timeval tv[2]) in lutimes() argument
9 if (tv) { in lutimes()
10 times[0].tv_sec = tv[0].tv_sec; in lutimes()
11 times[0].tv_nsec = tv[0].tv_usec * 1000; in lutimes()
12 times[1].tv_sec = tv[1].tv_sec; in lutimes()
13 times[1].tv_nsec = tv[1].tv_usec * 1000; in lutimes()
15 return utimensat(AT_FDCWD, filename, tv ? times : 0, AT_SYMLINK_NOFOLLOW); in lutimes()
/third_party/toybox/toys/pending/
H A Dbrctl.c175 static void strtotimeval(struct timeval *tv, char *time) in strtotimeval() argument
180 tv->tv_sec = secs; in strtotimeval()
181 tv->tv_usec = 1000000 * (secs - tv->tv_sec); in strtotimeval()
184 static unsigned long tv_to_jify(struct timeval *tv) in tv_to_jify() argument
188 jify = 1000000ULL * tv->tv_sec + tv->tv_usec; in tv_to_jify()
204 struct timeval tv; in br_set_ageing_time() local
206 strtotimeval(&tv, argv[1]); in br_set_ageing_time()
207 set_time(argv[0], BRCTL_SET_AGEING_TIME, tv_to_jify(&tv)); in br_set_ageing_time()
212 struct timeval tv; br_set_fwd_delay() local
220 struct timeval tv; br_set_hello_time() local
228 struct timeval tv; br_set_max_age() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/futex/
H A Dfutex_wake04.c50 struct futex_test_variants *tv = &variants[tst_variant]; in setup() local
52 tst_res(TINFO, "Testing variant: %s", tv->desc); in setup()
53 futex_supported_by_kernel(tv->fntype); in setup()
55 to = tst_ts_from_ns(tv->tstype, 30 * NSEC_PER_SEC); in setup()
60 struct futex_test_variants *tv = &variants[tst_variant]; in wait_thread1() local
62 futex_wait(tv->fntype, futex1, *futex1, &to, 0); in wait_thread1()
69 struct futex_test_variants *tv = &variants[tst_variant]; in wait_thread2() local
73 res = futex_wait(tv->fntype, futex2, *futex2, &to, 0); in wait_thread2()
84 struct futex_test_variants *tv = &variants[tst_variant]; in wakeup_thread2() local
119 futex_wake(tv in wakeup_thread2()
[all...]
H A Dfutex_wake03.c28 struct futex_test_variants *tv = &variants[tst_variant]; in do_child() local
30 futex_wait(tv->fntype, futex, *futex, NULL, 0); in do_child()
36 struct futex_test_variants *tv = &variants[tst_variant]; in do_wake() local
39 TEST(futex_wake(tv->fntype, futex, nr_children, 0)); in do_wake()
67 struct futex_test_variants *tv = &variants[tst_variant]; in run() local
83 TEST(futex_wake(tv->fntype, futex, 1, 0)); in run()
95 struct futex_test_variants *tv = &variants[tst_variant]; in setup() local
97 tst_res(TINFO, "Testing variant: %s", tv->desc); in setup()
98 futex_supported_by_kernel(tv->fntype); in setup()
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/
H A Dclock_nanosleep03.c38 static void do_clock_gettime(struct time64_variants *tv, struct tst_ts *ts) in do_clock_gettime() argument
42 ret = tv->clock_gettime(CLOCK_MONOTONIC, tst_ts_get(ts)); in do_clock_gettime()
49 struct time64_variants *tv = &variants[tst_variant]; in verify_clock_nanosleep() local
52 tst_res(TINFO, "Testing variant: %s", tv->desc); in verify_clock_nanosleep()
54 start.type = end.type = sleep_abs.type = tv->ts_type; in verify_clock_nanosleep()
60 do_clock_gettime(tv, &start); in verify_clock_nanosleep()
65 TEST(tv->clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, tst_ts_get(&sleep_abs), NULL)); in verify_clock_nanosleep()
70 if ((tv->clock_nanosleep == libc_clock_nanosleep) && TST_RET) { in verify_clock_nanosleep()
85 do_clock_gettime(tv, &end); in verify_clock_nanosleep()
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/tirpc/tirpc_interlevel_clnt_call/
H A Dtirpc_interlevel_clnt_call_dataint.c55 struct timeval tv; in main() local
78 tv.tv_sec = 1; in main()
79 tv.tv_usec = 1; in main()
82 VERSNUM, (struct netconfig *)nconf, &tv); in main()
94 tv); in main()
106 tv); in main()
118 tv); in main()
130 tv); in main()
143 tv); in main()
/third_party/musl/porting/liteos_a/user/src/select/
H A Dselect.c10 int select(int n, fd_set *restrict rfds, fd_set *restrict wfds, fd_set *restrict efds, struct timeval *restrict tv) in select() argument
12 time_t s = tv ? tv->tv_sec : 0; in select()
13 suseconds_t us = tv ? tv->tv_usec : 0; in select()
32 tv ? ((long long[]){s, ns}) : 0, in select()
39 tv ? ((long long[]){s, us}) : 0); in select()
42 tv ? ((long long[]){s, ns}) : 0, ((syscall_arg_t[]){ 0, _NSIG/8 })); in select()
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dgettimeofday.c33 struct timeval tv; in gettimeofday_0100() local
42 int returnflag = gettimeofday(&tv, NULL); in gettimeofday_0100()
45 EXPECT_EQ("gettimeofday_0100", (sec == tv.tv_sec || (sec+1) == tv.tv_sec), true); in gettimeofday_0100()
66 struct timeval tv; in gettimeofday_time64_0100() local
75 int returnflag = __gettimeofday_time64(&tv, NULL); in gettimeofday_time64_0100()
78 EXPECT_EQ("gettimeofday_time64_0100", (sec == tv.tv_sec || (sec+1) == tv.tv_sec), true); in gettimeofday_time64_0100()

Completed in 12 milliseconds

12345678910>>...21