diff options
Diffstat (limited to 'usr.bin/dig/dighost.c')
| -rw-r--r-- | usr.bin/dig/dighost.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/dig/dighost.c b/usr.bin/dig/dighost.c index 4f79c254398..afc2c749059 100644 --- a/usr.bin/dig/dighost.c +++ b/usr.bin/dig/dighost.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dighost.c,v 1.9 2020/02/16 21:06:15 florian Exp $ */ +/* $Id: dighost.c,v 1.10 2020/02/16 21:11:02 florian Exp $ */ /*! \file * \note @@ -380,7 +380,7 @@ debug(const char *format, ...) { if (debugging) { fflush(stdout); if (debugtiming) { - TIME_NOW(&t); + clock_gettime(CLOCK_REALTIME, &t); fprintf(stderr, "%lld.%06ld: ", t.tv_sec, t.tv_nsec / 1000); } @@ -2749,7 +2749,7 @@ send_udp(dig_query_t *query) { sendbuf = clone_buffer(&query->sendbuf); ISC_LIST_ENQUEUE(query->sendlist, sendbuf, link); debug("sending a request"); - TIME_NOW(&query->time_sent); + clock_gettime(CLOCK_REALTIME, &query->time_sent); INSIST(query->sock != NULL); query->waiting_senddone = ISC_TRUE; result = isc_socket_sendtov2(query->sock, &query->sendlist, @@ -2965,7 +2965,7 @@ launch_next_query(dig_query_t *query, isc_boolean_t include_question) { debug("recvcount=%d", recvcount); if (!query->first_soa_rcvd) { debug("sending a request in launch_next_query"); - TIME_NOW(&query->time_sent); + clock_gettime(CLOCK_REALTIME, &query->time_sent); query->waiting_senddone = ISC_TRUE; result = isc_socket_sendv(query->sock, &query->sendlist, global_task, send_done, query); @@ -3335,7 +3335,7 @@ recv_done(isc_task_t *task, isc_event_t *event) { INSIST(recvcount >= 0); query = event->ev_arg; - TIME_NOW(&query->time_recv); + clock_gettime(CLOCK_REALTIME, &query->time_recv); debug("lookup=%p, query=%p", query->lookup, query); l = query->lookup; |
