From 82a9c3b2c842f32b1db9289cf160352c25632e92 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 31 Jan 2021 17:58:33 +0100 Subject: [PATCH] Display program build time. --- server/TracyView.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 164eca2f..9f855f6d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -13606,6 +13606,15 @@ void View::DrawInfo() if( m_bigFont ) ImGui::PushFont( m_bigFont ); TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() ); if( m_bigFont ) ImGui::PopFont(); + const auto exectime = m_worker.GetExecutableTime(); + if( exectime != 0 ) + { + char etmp[64]; + time_t et = exectime; + auto elt = localtime( &et ); + strftime( etmp, 64, "%F %T", elt ); + TextFocused( "Build time:", etmp ); + } TextFocused( "Capture time:", dtmp ); if( !m_filename.empty() ) {