From 4a4184cd96a95e6a3dd22aae747edc452b4864d2 Mon Sep 17 00:00:00 2001 From: Matthias Behr Date: Wed, 3 Jan 2024 08:36:16 +0100 Subject: [PATCH] fix(search): use full .1ms precision Avoid conversion via Date constructor that seems to loose sub ms precision. --- src/panels/SearchPanel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/SearchPanel.ts b/src/panels/SearchPanel.ts index 51337bc7..dbfeac30 100644 --- a/src/panels/SearchPanel.ts +++ b/src/panels/SearchPanel.ts @@ -399,7 +399,7 @@ export class SearchPanelProvider implements WebviewViewProvider { return { index: m.index, receptionTimeInMs: m.receptionTimeInMs, - calculatedTimeInMs: doc.provideTimeByMsg(m)?.valueOf(), + calculatedTimeInMs: doc.provideTimeByMsgInMs(m), timeStamp: m.timeStamp, ecu: m.ecu, mcnt: m.mcnt,