mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Display program build time.
This commit is contained in:
parent
3ff1692918
commit
82a9c3b2c8
@ -13606,6 +13606,15 @@ void View::DrawInfo()
|
|||||||
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
if( m_bigFont ) ImGui::PushFont( m_bigFont );
|
||||||
TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() );
|
TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() );
|
||||||
if( m_bigFont ) ImGui::PopFont();
|
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 );
|
TextFocused( "Capture time:", dtmp );
|
||||||
if( !m_filename.empty() )
|
if( !m_filename.empty() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user