/freebsd/contrib/kyua/utils/ |
H A D | datetime_test.cpp | 270 const datetime::timestamp ts2 = ts1; in ATF_TEST_CASE_BODY() local 274 ATF_REQUIRE_EQ("2011", ts2.strftime("%Y")); in ATF_TEST_CASE_BODY() 347 const datetime::timestamp ts2 = datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() local 349 ATF_REQUIRE_EQ("2011-02-16T19:15:30", ts2.strftime("%Y-%m-%dT%H:%M:%S")); in ATF_TEST_CASE_BODY() 360 const datetime::timestamp ts2= datetime::timestamp::from_values( in ATF_TEST_CASE_BODY() local 362 ATF_REQUIRE_EQ("2016-07-11T17:51:28.123456Z", ts2.to_iso8601_in_utc()); in ATF_TEST_CASE_BODY() 417 const datetime::timestamp ts2 = datetime::timestamp::from_microseconds( in ATF_TEST_CASE_BODY() local 420 ATF_REQUIRE(!(ts1 < ts2)); in ATF_TEST_CASE_BODY() 421 ATF_REQUIRE( ts1 <= ts2); in ATF_TEST_CASE_BODY() 422 ATF_REQUIRE(!(ts1 > ts2)); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_nanosleep.c | 71 struct timespec ts1, ts2, tsn; in ATF_TC_BODY() local 80 (void)memset(&ts2, 0, sizeof(struct timespec)); in ATF_TC_BODY() 84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY() 89 if (timespeccmp(&ts2, &ts1, <=) != 0) { in ATF_TC_BODY() 97 (unsigned long long)ts2.tv_sec, ts2.tv_nsec); in ATF_TC_BODY()
|
/freebsd/sys/netsmb/ |
H A D | smb_trantcp.c | 515 struct timespec ts1, ts2; in smb_nbst_connect() local 539 getnanotime(&ts2); in smb_nbst_connect() 540 timespecsub(&ts2, &ts1, &ts2); in smb_nbst_connect() 541 if (ts2.tv_sec == 0) { in smb_nbst_connect() 542 ts2.tv_sec = 1; in smb_nbst_connect() 543 ts2.tv_nsec = 0; in smb_nbst_connect() 545 timespecadd(&ts2, &ts2, &nbp->nbp_timo); in smb_nbst_connect() 546 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); in smb_nbst_connect() 547 timespecadd(&nbp->nbp_timo, &ts2, &nbp->nbp_timo); /* * 4 */ in smb_nbst_connect()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_join.c | 88 struct timespec ts, ts2, *tsp; in join_common() local 136 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common() 137 if (ts2.tv_sec < 0) { in join_common() 141 tsp = &ts2; in join_common()
|
H A D | thr_mutex.c | 886 struct timespec ts1, ts2; in mutex_self_lock() local 898 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 899 __sys_nanosleep(&ts2, NULL); in mutex_self_lock() 923 TIMESPEC_SUB(&ts2, abstime, &ts1); in mutex_self_lock() 924 __sys_nanosleep(&ts2, NULL); in mutex_self_lock()
|
/freebsd/tools/tools/so_splice/ |
H A D | pingpong.c | 130 struct timespec ts1, ts2; in main() local 149 clock_gettime(CLOCK_MONOTONIC, &ts2); in main() 151 ns = (ts2.tv_sec - ts1.tv_sec) * 1000000000 + in main() 152 (ts2.tv_nsec - ts1.tv_nsec); in main()
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_clock.c | 61 struct timespec ts2; in measure_clock() local 80 nanotime(&ts2); in measure_clock() 82 delta = timespec_sub(ts2, ts1); in measure_clock()
|
/freebsd/crypto/openssl/crypto/ |
H A D | o_time.c | 31 struct tm data, *ts2 = &data; in OPENSSL_gmtime() local 35 if (gmtime_r(timer, ts2) == NULL) in OPENSSL_gmtime() 37 memcpy(result, ts2, sizeof(struct tm)); in OPENSSL_gmtime()
|
/freebsd/sys/kern/ |
H A D | sched_ule.c | 2414 struct td_sched *ts2; in sched_fork_thread() 2423 ts2 = td_get_sched(child); in sched_fork_thread() 2429 ts2->ts_cpu = ts->ts_cpu; in sched_fork_thread() 2430 ts2->ts_flags = 0; in sched_fork_thread() 2434 ts2->ts_ticks = ts->ts_ticks; in sched_fork_thread() 2435 ts2->ts_ltick = ts->ts_ltick; in sched_fork_thread() 2436 ts2->ts_ftick = ts->ts_ftick; in sched_fork_thread() 2444 ts2->ts_slptime = ts->ts_slptime; in sched_fork_thread() 2445 ts2->ts_runtime = ts->ts_runtime; in sched_fork_thread() 2447 ts2 in sched_fork_thread() 2417 struct td_sched *ts2; sched_fork_thread() local [all...] |
H A D | uipc_mqueue.c | 1694 struct timespec ts, ts2; in mqueue_send() local 1736 timespecsub(abs_timeout, &ts, &ts2); in mqueue_send() 1737 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_send() 1741 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_send() 1849 struct timespec ts, ts2; in mqueue_receive() local 1887 timespecsub(abs_timeout, &ts, &ts2); in mqueue_receive() 1888 if (ts2.tv_sec < 0 || (ts2.tv_sec == 0 && ts2.tv_nsec <= 0)) { in mqueue_receive() 1892 TIMESPEC_TO_TIMEVAL(&tv, &ts2); in mqueue_receive()
|
H A D | kern_timeout.c | 647 struct timespec ts2; in softclock_call_cc() local 737 ts2 = sbttots(sbt2); in softclock_call_cc() 740 c_func, c_arg, (intmax_t)ts2.tv_sec, ts2.tv_nsec); in softclock_call_cc()
|
H A D | uipc_sem.c | 809 struct timespec ts1, ts2; in kern_sem_wait() local 844 getnanotime(&ts2); in kern_sem_wait() 845 timespecsub(&ts1, &ts2, &ts1); in kern_sem_wait()
|
/freebsd/usr.sbin/moused/ |
H A D | moused.c | 2510 struct timespec ts2; in r_timestamp() 2526 ts2.tv_sec = rodent.clickthreshold / 1000; in r_timestamp() 2527 ts2.tv_nsec = (rodent.clickthreshold % 1000) * 1000000; in r_timestamp() 2528 tssub(&ts1, &ts2, &ts); in r_timestamp() 2532 ts2.tv_sec = rodent.button2timeout / 1000; in r_timestamp() 2533 ts2.tv_nsec = (rodent.button2timeout % 1000) * 1000000; in r_timestamp() 2534 tssub(&ts1, &ts2, &ts3); in r_timestamp() 2576 struct timespec ts2; in r_timeout() 2581 ts2.tv_sec = rodent.button2timeout / 1000; in r_timeout() 2582 ts2 in r_timeout() 2511 struct timespec ts2; r_timestamp() local 2577 struct timespec ts2; r_timeout() local [all...] |
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_cmd.c | 834 ds = ent->ts2 - ent->ts1; in complete_command() 1025 ds = ent->ts2 - ent->ts1; in mlx5_cmd_invoke() 1218 ent->ts2 = ktime_get_ns(); in mlx5_cmd_comp_handler()
|
/freebsd/sys/dev/mlx5/ |
H A D | driver.h | 889 u64 ts2; member
|
/freebsd/contrib/ncurses/ |
H A D | aclocal.m4 | 2760 struct timespec ts1, ts2; 2764 ts2.tv_sec = 0; 2765 ts2.tv_nsec = 0; 2767 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
|