From c2b5b64cda9c5f7558dfebc48a22f3abe2003b2e Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 25 Sep 2023 22:02:50 +0200 Subject: [PATCH] CoapClient - Start the stopwatch --- source/doap/client/client.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/doap/client/client.d b/source/doap/client/client.d index 50bdf87..473dedc 100644 --- a/source/doap/client/client.d +++ b/source/doap/client/client.d @@ -51,7 +51,7 @@ public class CoapClient private ushort rollingMid; private Mutex rollingLock; - import std.datetime.stopwatch : StopWatch; + import std.datetime.stopwatch : StopWatch, AutoStart; private StopWatch[ushort] mids; /** @@ -145,7 +145,7 @@ public class CoapClient import doap.utils : findNextFree; ushort newMid = findNextFree(inUse); - this.mids[newMid] = StopWatch(); + this.mids[newMid] = StopWatch(AutoStart.yes); return newMid;