From 05c60259b6289e4a66adb46f2e589d325d19f462 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 4 Aug 2020 17:26:00 +0200 Subject: [PATCH] Display exact time for annotation begin, end. --- server/TracyView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index dca2e846..f03d6f31 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3171,8 +3171,8 @@ void View::DrawZones() ImGui::TextUnformatted( ann->text.c_str() ); } ImGui::Separator(); - TextFocused( "Annotation begin:", TimeToString( ann->range.min ) ); - TextFocused( "Annotation end:", TimeToString( ann->range.max ) ); + TextFocused( "Annotation begin:", TimeToStringExact( ann->range.min ) ); + TextFocused( "Annotation end:", TimeToStringExact( ann->range.max ) ); TextFocused( "Annotation length:", TimeToString( ann->range.max - ann->range.min ) ); ImGui::EndTooltip(); } @@ -14306,8 +14306,8 @@ void View::DrawSelectedAnnotation() ImGui::ColorEdit3( "Color", &col.x ); m_selectedAnnotation->color = ImGui::ColorConvertFloat4ToU32( col ); ImGui::Separator(); - TextFocused( "Annotation begin:", TimeToString( m_selectedAnnotation->range.min ) ); - TextFocused( "Annotation end:", TimeToString( m_selectedAnnotation->range.max ) ); + TextFocused( "Annotation begin:", TimeToStringExact( m_selectedAnnotation->range.min ) ); + TextFocused( "Annotation end:", TimeToStringExact( m_selectedAnnotation->range.max ) ); TextFocused( "Annotation length:", TimeToString( m_selectedAnnotation->range.max - m_selectedAnnotation->range.min ) ); ImGui::End(); if( !show ) m_selectedAnnotation = nullptr;