Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 27) sorted by relevance

12

/openssl/test/
H A Dtime_test.c21 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
31 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
35 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
39 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
43 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 2)) in test_time_to_timeval()
47 if (!TEST_long_eq(tv.tv_sec, 0) || !TEST_long_eq(tv.tv_usec, 999)) in test_time_to_timeval()
51 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
55 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
59 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 0)) in test_time_to_timeval()
63 if (!TEST_long_eq(tv.tv_sec, 1) || !TEST_long_eq(tv.tv_usec, 1)) in test_time_to_timeval()
H A Dtiming_load_creds.c29 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
32 --(res)->tv_sec; \
80 printf("%s %d sec %d microsec\n", what, (int)tp->tv_sec, (int)tp->tv_usec); in print_timeval()
H A Dlhash_test.c321 y->tv_sec += nsec; in timeval_subtract()
326 y->tv_sec -= nsec; in timeval_subtract()
333 result->tv_sec = x->tv_sec - y->tv_sec; in timeval_subtract()
337 return x->tv_sec < y->tv_sec; in timeval_subtract()
391 TEST_info("lhash stress runs in %ld.%ld seconds", delta.tv_sec, delta.tv_usec); in test_stress()
481 TEST_info("hashtable stress runs in %ld.%ld seconds", delta.tv_sec, delta.tv_usec); in test_hashtable_stress()
700 TEST_info("multithread stress runs 40000 ops in %ld.%ld seconds", delta.tv_sec, delta.tv_usec); in test_hashtable_multithread()
H A Dthreadstest.c261 tottime = dtime.tv_sec + (dtime.tv_usec / 1e6); in _torture_rw()
456 tottime = dtime.tv_sec + (dtime.tv_usec / 1e6); in _torture_rcu()
/openssl/crypto/
H A Dtime.c43 if (t.tv_sec <= 0) in ossl_time_now()
46 r.t = ((uint64_t)t.tv_sec * 1000000 + t.tv_usec) * OSSL_TIME_US; in ossl_time_now()
H A Dsleep.c62 ts.tv_sec = (long int) (millis / 1000); in OSSL_sleep()
/openssl/include/internal/
H A Dtime.h106 tv.tv_sec = (long int)(t.t / OSSL_TIME_SECOND); in ossl_time_to_timeval()
108 tv.tv_sec = (time_t)(t.t / OSSL_TIME_SECOND); in ossl_time_to_timeval()
121 if (tv.tv_sec < 0) in ossl_time_from_timeval()
124 t.t = tv.tv_sec * OSSL_TIME_SECOND + tv.tv_usec * OSSL_TIME_US; in ossl_time_from_timeval()
/openssl/providers/implementations/rands/seeding/
H A Drand_vxworks.c45 return TWO32TO64(ts.tv_sec, ts.tv_nsec); in get_time_stamp()
58 return TWO32TO64(ts.tv_sec, ts.tv_nsec); in get_timer_bits()
H A Drand_unix.c781 return TWO32TO64(ts.tv_sec, ts.tv_nsec); in get_time_stamp()
790 return TWO32TO64(tv.tv_sec, tv.tv_usec); in get_time_stamp()
/openssl/doc/designs/ddd/
H A Dddd-02-conn-nonblocking.c305 t->tv_sec = ms < 0 ? -1 : ms/1000; in ms_to_timeval()
311 return t->tv_sec*1000 + t->tv_usec/1000; in timeval_to_ms()
369 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
413 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
H A Dddd-04-fd-nonblocking.c283 t->tv_sec = ms < 0 ? -1 : ms/1000; in ms_to_timeval()
289 return t->tv_sec*1000 + t->tv_usec/1000; in timeval_to_ms()
384 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
428 if (t.tv_sec < 0 || timercmp(&t, &timeout, >)) in main()
H A Dddd-06-mem-uv.c35 return t->tv_sec*1000 + t->tv_usec/1000; in timeval_to_ms()
/openssl/engines/
H A De_afalg.c129 __kernel_long_t tv_sec; member
161 if (timeout && timeout->tv_sec == (long)timeout->tv_sec) { in io_getevents()
164 ts32.tv_sec = (__kernel_long_t) timeout->tv_sec; in io_getevents()
274 timeout.tv_sec = 0; in afalg_fin_cipher_aio()
/openssl/ssl/rio/
H A Dpoll_immediate.c52 && timeout->tv_sec == 0 && timeout->tv_usec == 0); in SSL_poll()
/openssl/crypto/thread/arch/
H A Dthread_posix.c194 deadline_ts.tv_sec in ossl_crypto_condvar_wait_timeout()
/openssl/util/
H A Dcheck-format-test-negatives.c268 - (tmstart.tv_sec + tmstart.tv_nsec * 1e-9);
/openssl/apps/lib/
H A Ds_socket.c434 timeout.tv_sec = 0; in do_server()
H A Dapps.c2862 ret = ((now.tv_sec + now.tv_nsec * 1e-9) in app_tminterval()
2863 - (tmstart.tv_sec + tmstart.tv_nsec * 1e-9)); in app_tminterval()
2917 ret = ((now.tv_sec + now.tv_usec * 1e-6) in app_tminterval()
2918 - (tmstart.tv_sec + tmstart.tv_usec * 1e-6)); in app_tminterval()
/openssl/crypto/bio/
H A Dbio_sock.c454 tv.tv_sec = (long)(max_time - now); /* might overflow */ in BIO_socket_wait()
H A Dbss_dgram.c787 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
814 tv->tv_sec = timeout / 1000; in dgram_ctrl()
837 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000; in dgram_ctrl()
864 tv->tv_sec = timeout / 1000; in dgram_ctrl()
/openssl/apps/
H A Ds_client.c2228 timeout.tv_sec = 0; in s_client_main()
2232 timeout.tv_sec = 0; in s_client_main()
2554 timeout.tv_sec = S_CLIENT_IRC_READ_TIMEOUT; in s_client_main()
2978 timeout.tv_sec = 0; in s_client_main()
3044 tv.tv_sec = 1; in s_client_main()
3307 timeout.tv_sec = 0; in s_client_main()
H A Ds_server.c2503 timeout.tv_sec = 0; in sv_body()
2507 timeout.tv_sec = 0; in sv_body()
2655 timeout.tv_sec = 1; in sv_body()
/openssl/demos/guide/
H A Dquic-hq-interop.c926 poll_timeout.tv_sec = 0; in main()
/openssl/crypto/ts/
H A Dts_rsp_sign.c77 *sec = (long int)tv.tv_sec; in def_time_cb()
/openssl/test/helpers/
H A Dssltestlib.c1003 timeout.tv_sec = 10; /* give up after 10 seconds */ in wait_until_sock_readable()

Completed in 74 milliseconds

12