From f0ee3243996b34e3d3fc42fe88470e7092047bd8 Mon Sep 17 00:00:00 2001 From: Dirk Eibach Date: Wed, 27 Nov 2024 22:17:33 +0100 Subject: [PATCH] Add absolute time info to Zone info view --- profiler/src/profiler/TracyView_ZoneInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiler/src/profiler/TracyView_ZoneInfo.cpp b/profiler/src/profiler/TracyView_ZoneInfo.cpp index 3494ada7..4c13b7de 100644 --- a/profiler/src/profiler/TracyView_ZoneInfo.cpp +++ b/profiler/src/profiler/TracyView_ZoneInfo.cpp @@ -457,6 +457,8 @@ void View::DrawZoneInfoWindow() const auto ztime = end - ev.Start(); const auto selftime = GetZoneSelfTime( ev ); TextFocused( "Time from start of program:", TimeToStringExact( ev.Start() ) ); + const std::time_t ts = m_worker.GetCaptureTime() + ev.Start() / 1000000000; + TextFocused( "Wall clock time:", std::asctime( std::localtime( &ts) ) ); TextFocused( "Execution time:", TimeToString( ztime ) ); #ifndef TRACY_NO_STATISTICS if( m_worker.AreSourceLocationZonesReady() )