/openssl/test/ |
H A D | time_test.c | 21 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 D | timing_load_creds.c | 29 (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 D | lhash_test.c | 321 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 D | threadstest.c | 261 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 D | time.c | 43 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 D | sleep.c | 62 ts.tv_sec = (long int) (millis / 1000); in OSSL_sleep()
|
/openssl/include/internal/ |
H A D | time.h | 106 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 D | rand_vxworks.c | 45 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 D | rand_unix.c | 781 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 D | ddd-02-conn-nonblocking.c | 305 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 D | ddd-04-fd-nonblocking.c | 283 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 D | ddd-06-mem-uv.c | 35 return t->tv_sec*1000 + t->tv_usec/1000; in timeval_to_ms()
|
/openssl/engines/ |
H A D | e_afalg.c | 129 __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 D | poll_immediate.c | 52 && timeout->tv_sec == 0 && timeout->tv_usec == 0); in SSL_poll()
|
/openssl/crypto/thread/arch/ |
H A D | thread_posix.c | 194 deadline_ts.tv_sec in ossl_crypto_condvar_wait_timeout()
|
/openssl/util/ |
H A D | check-format-test-negatives.c | 268 - (tmstart.tv_sec + tmstart.tv_nsec * 1e-9);
|
/openssl/apps/lib/ |
H A D | s_socket.c | 434 timeout.tv_sec = 0; in do_server()
|
H A D | apps.c | 2862 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 D | bio_sock.c | 454 tv.tv_sec = (long)(max_time - now); /* might overflow */ in BIO_socket_wait()
|
H A D | bss_dgram.c | 787 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 D | s_client.c | 2228 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 D | s_server.c | 2503 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 D | quic-hq-interop.c | 926 poll_timeout.tv_sec = 0; in main()
|
/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 77 *sec = (long int)tv.tv_sec; in def_time_cb()
|
/openssl/test/helpers/ |
H A D | ssltestlib.c | 1003 timeout.tv_sec = 10; /* give up after 10 seconds */ in wait_until_sock_readable()
|