Searched refs:tv_delta (Results 1 – 2 of 2) sorted by relevance
91 struct timeval tv_delta; variable106 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 …]
46 struct timeval tv_delta = { .tv_sec = delta / 1000000L, .tv_usec = delta % 1000000L }; in sntp_sync_time() local47 if (adjtime(&tv_delta, NULL) == -1) { in sntp_sync_time()