Add absolute time info to Zone info view

This commit is contained in:
Dirk Eibach 2024-11-27 22:17:33 +01:00
parent 759b4c3bfe
commit f0ee324399

View File

@ -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() )