Home
last modified time | relevance | path

Searched refs:tv_delta (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/components/newlib/test/
Dtest_time.c91 struct timeval tv_delta; variable
106 tv_delta.tv_sec = INT_MAX / 1000000L;
107 TEST_ASSERT_EQUAL(adjtime(&tv_delta, &tv_outdelta), -1);
109 tv_delta.tv_sec = INT_MIN / 1000000L;
110 TEST_ASSERT_EQUAL(adjtime(&tv_delta, &tv_outdelta), -1);
112 tv_delta.tv_sec = 0;
113 tv_delta.tv_usec = -900000;
114 TEST_ASSERT_EQUAL(adjtime(&tv_delta, &tv_outdelta), 0);
120 tv_delta.tv_sec = -4;
121 tv_delta.tv_usec = -900000;
[all …]
/hal_espressif-3.6.0/components/lwip/apps/sntp/
Dsntp.c46 struct timeval tv_delta = { .tv_sec = delta / 1000000L, .tv_usec = delta % 1000000L }; in sntp_sync_time() local
47 if (adjtime(&tv_delta, NULL) == -1) { in sntp_sync_time()