1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Send and display program execution date.

This commit is contained in:
Bartosz Taudul
2017-10-03 23:26:41 +02:00
parent 7526ac83b5
commit b2252de9c8
4 changed files with 13 additions and 6 deletions
+1
View File
@@ -128,6 +128,7 @@ void Profiler::Worker()
welcome.timeBegin = m_timeBegin;
welcome.delay = m_delay;
welcome.resolution = m_resolution;
welcome.epoch = std::chrono::duration_cast<std::chrono::seconds>( std::chrono::system_clock::now().time_since_epoch() ).count();
memcpy( welcome.programName, procname, pnsz );
memset( welcome.programName + pnsz, 0, WelcomeMessageProgramNameSize - pnsz );