From c2dadde5ef03f125f9d7cfaf89cb4b72082b1f86 Mon Sep 17 00:00:00 2001 From: aangerma Date: Sun, 28 Feb 2021 11:54:13 +0200 Subject: [PATCH 1/3] Playback slider show milliseconds. (DSO-12379) --- common/model-views.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/model-views.cpp b/common/model-views.cpp index 796f3b3242..a703b16b72 100644 --- a/common/model-views.cpp +++ b/common/model-views.cpp @@ -4407,12 +4407,14 @@ namespace rs2 duration -= mm; auto ss = duration_cast(duration); duration -= ss; + auto ms = duration_cast(duration); + duration -= ss; std::ostringstream stream; stream << std::setfill('0') << std::setw(hhh.count() >= 10 ? 2 : 1) << hhh.count() << ':' << std::setfill('0') << std::setw(2) << mm.count() << ':' << - std::setfill('0') << std::setw(2) << ss.count();// << '.' << - //std::setfill('0') << std::setw(3) << ms.count(); + std::setfill('0') << std::setw(2) << ss.count() << ':' << + std::setfill('0') << std::setw(3) << ms.count(); return stream.str(); } From ae3bce95e55b375856dcb01e9f480ba084d11401 Mon Sep 17 00:00:00 2001 From: aangerma Date: Mon, 1 Mar 2021 14:20:26 +0200 Subject: [PATCH 2/3] CR fix --- common/model-views.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/model-views.cpp b/common/model-views.cpp index a703b16b72..79cebc5d2c 100644 --- a/common/model-views.cpp +++ b/common/model-views.cpp @@ -4413,7 +4413,7 @@ namespace rs2 std::ostringstream stream; stream << std::setfill('0') << std::setw(hhh.count() >= 10 ? 2 : 1) << hhh.count() << ':' << std::setfill('0') << std::setw(2) << mm.count() << ':' << - std::setfill('0') << std::setw(2) << ss.count() << ':' << + std::setfill('0') << std::setw(2) << ss.count() << '.' << std::setfill('0') << std::setw(3) << ms.count(); return stream.str(); } From 8c70e0bdbd6b3f03ecf3f4ab5b1a05db292cdb59 Mon Sep 17 00:00:00 2001 From: aangerma Date: Tue, 2 Mar 2021 16:08:44 +0200 Subject: [PATCH 3/3] CR fix --- common/model-views.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/common/model-views.cpp b/common/model-views.cpp index 79cebc5d2c..bd424949ca 100644 --- a/common/model-views.cpp +++ b/common/model-views.cpp @@ -4408,7 +4408,6 @@ namespace rs2 auto ss = duration_cast(duration); duration -= ss; auto ms = duration_cast(duration); - duration -= ss; std::ostringstream stream; stream << std::setfill('0') << std::setw(hhh.count() >= 10 ? 2 : 1) << hhh.count() << ':' <<