Merge pull request #931 from eibach/feature_abstime

Add absolute time info to Zone info view
This commit is contained in:
Bartosz Taudul 2024-11-27 22:59:27 +01:00 committed by GitHub
commit a9e8f9a5f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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