/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/ |
D | clock_test_008.cpp | 46 struct timespec res, tp, oldtp; in ClockTest() local 57 ret = clock_gettime(clk, &oldtp); in ClockTest() 59 printf("The current monotonic time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest() 61 tp.tv_sec = 5 * oldtp.tv_sec; // 5, times the number of seconds. in ClockTest() 62 tp.tv_nsec = oldtp.tv_nsec; in ClockTest() 73 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
|
D | clock_test_006.cpp | 46 struct timespec res, tp, oldtp; in ClockTest() local 57 ret = clock_gettime(clk, &oldtp); in ClockTest() 59 printf("The current coarse real time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest() 61 tp.tv_sec = 5 * oldtp.tv_sec; // 5, times the number of seconds. in ClockTest() 62 tp.tv_nsec = oldtp.tv_nsec; // 5, times the number of nseconds. in ClockTest() 75 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
|
D | clock_test_001.cpp | 46 struct timespec res, tp, oldtp; in ClockTest() local 57 ret = clock_gettime(clk, &oldtp); in ClockTest() 58 printf("The current real time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest() 64 tp.tv_sec = oldtp.tv_sec + 2; // 2, use for testing clock setting in ClockTest() 65 tp.tv_nsec = oldtp.tv_nsec; in ClockTest() 77 …passflag = (tp.tv_sec >= 2 + oldtp.tv_sec) && (tp.tv_sec <= 2 + oldtp.tv_sec + 1); // 2, use for t… in ClockTest()
|
D | clock_test_009.cpp | 46 struct timespec res, tp, oldtp; in ClockTest() local 57 ret = clock_gettime(clk, &oldtp); in ClockTest() 59 … printf("The current monotonic raw time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest() 73 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
|
D | clock_test_007.cpp | 46 struct timespec res, tp, oldtp; in ClockTest() local 56 ret = clock_gettime(clk, &oldtp); in ClockTest() 58 …printf("The current monotonic coarse time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nse… in ClockTest() 72 passflag = (tp.tv_sec >= oldtp.tv_sec) && (tp.tv_sec <= oldtp.tv_sec + 1); in ClockTest()
|
D | clock_test_010.cpp | 46 struct timespec tp, oldtp; in SleepTest() local 51 ret = clock_gettime(clk, &oldtp); in SleepTest() 63 …escapeTime = (tp.tv_sec - oldtp.tv_sec) * static_cast<int64_t>(1e9) + (tp.tv_nsec - oldtp.tv_nsec… in SleepTest()
|
/kernel/liteos_a/testsuites/unittest/libc/time/clock/smoke/ |
D | clock_test_smoke.cpp | 36 struct timespec res = {0,0}, setts = {0,0}, oldtp = {0,0}, ts = {0,0}; in ClockSmokeTest() local 47 ret = clock_gettime(clk, &oldtp); in ClockSmokeTest() 48 printf("the clock current time: %lld second, %ld nanosecond\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockSmokeTest() 52 setts.tv_sec = oldtp.tv_sec + 1; in ClockSmokeTest() 53 setts.tv_nsec = oldtp.tv_nsec; in ClockSmokeTest()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_minisocks.c | 435 static void smc_check_reset_syn_req(struct tcp_sock *oldtp, in smc_check_reset_syn_req() argument 444 if (oldtp->syn_smc && !ireq->smc_ok) in smc_check_reset_syn_req() 464 struct tcp_sock *oldtp, *newtp; in tcp_create_openreq_child() local 472 oldtp = tcp_sk(sk); in tcp_create_openreq_child() 474 smc_check_reset_syn_req(oldtp, req, newtp); in tcp_create_openreq_child()
|