From f25066900a507406740daafbd5fcfc242ab49ed0 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 22 Sep 2023 16:27:11 +0200 Subject: [PATCH] CoapMessaging - When a matched packet is found in `handlePacket(CoapPacket)` then print the elapsed time since the original request (thus far) --- source/doap/client/messaging.d | 1 + 1 file changed, 1 insertion(+) diff --git a/source/doap/client/messaging.d b/source/doap/client/messaging.d index 2a6a8a4..9b942bd 100644 --- a/source/doap/client/messaging.d +++ b/source/doap/client/messaging.d @@ -98,6 +98,7 @@ class CoapMessagingLayer : Thread if(request) { writeln("Matched response '"~packet.toString()~"' to request '"~request.toString()~"'"); + writeln("Elapsed time: ", request.getElapsedTime()); // Fulfill the request with the received data and wake up sleepers request.future.receiveWake(packet);