=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/dig/dighost.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- src/usr.bin/dig/dighost.c 2020/02/20 18:07:59 1.12 +++ src/usr.bin/dig/dighost.c 2020/02/21 07:44:50 1.13 @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.12 2020/02/20 18:07:59 florian Exp $ */ +/* $Id: dighost.c,v 1.13 2020/02/21 07:44:50 florian Exp $ */ /*! \file * \note @@ -380,7 +380,7 @@ if (debugging) { fflush(stdout); if (debugtiming) { - clock_gettime(CLOCK_REALTIME, &t); + clock_gettime(CLOCK_MONOTONIC, &t); fprintf(stderr, "%lld.%06ld: ", t.tv_sec, t.tv_nsec / 1000); } @@ -2704,7 +2704,7 @@ sendbuf = clone_buffer(&query->sendbuf); ISC_LIST_ENQUEUE(query->sendlist, sendbuf, link); debug("sending a request"); - clock_gettime(CLOCK_REALTIME, &query->time_sent); + clock_gettime(CLOCK_MONOTONIC, &query->time_sent); INSIST(query->sock != NULL); query->waiting_senddone = ISC_TRUE; result = isc_socket_sendtov2(query->sock, &query->sendlist, @@ -2920,7 +2920,7 @@ debug("recvcount=%d", recvcount); if (!query->first_soa_rcvd) { debug("sending a request in launch_next_query"); - clock_gettime(CLOCK_REALTIME, &query->time_sent); + clock_gettime(CLOCK_MONOTONIC, &query->time_sent); query->waiting_senddone = ISC_TRUE; result = isc_socket_sendv(query->sock, &query->sendlist, global_task, send_done, query); @@ -3290,7 +3290,7 @@ INSIST(recvcount >= 0); query = event->ev_arg; - clock_gettime(CLOCK_REALTIME, &query->time_recv); + clock_gettime(CLOCK_MONOTONIC, &query->time_recv); debug("lookup=%p, query=%p", query->lookup, query); l = query->lookup;