mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Display exact time for annotation begin, end.
This commit is contained in:
parent
22e86af4ab
commit
05c60259b6
@ -3171,8 +3171,8 @@ void View::DrawZones()
|
||||
ImGui::TextUnformatted( ann->text.c_str() );
|
||||
}
|
||||
ImGui::Separator();
|
||||
TextFocused( "Annotation begin:", TimeToString( ann->range.min ) );
|
||||
TextFocused( "Annotation end:", TimeToString( ann->range.max ) );
|
||||
TextFocused( "Annotation begin:", TimeToStringExact( ann->range.min ) );
|
||||
TextFocused( "Annotation end:", TimeToStringExact( ann->range.max ) );
|
||||
TextFocused( "Annotation length:", TimeToString( ann->range.max - ann->range.min ) );
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
@ -14306,8 +14306,8 @@ void View::DrawSelectedAnnotation()
|
||||
ImGui::ColorEdit3( "Color", &col.x );
|
||||
m_selectedAnnotation->color = ImGui::ColorConvertFloat4ToU32( col );
|
||||
ImGui::Separator();
|
||||
TextFocused( "Annotation begin:", TimeToString( m_selectedAnnotation->range.min ) );
|
||||
TextFocused( "Annotation end:", TimeToString( m_selectedAnnotation->range.max ) );
|
||||
TextFocused( "Annotation begin:", TimeToStringExact( m_selectedAnnotation->range.min ) );
|
||||
TextFocused( "Annotation end:", TimeToStringExact( m_selectedAnnotation->range.max ) );
|
||||
TextFocused( "Annotation length:", TimeToString( m_selectedAnnotation->range.max - m_selectedAnnotation->range.min ) );
|
||||
ImGui::End();
|
||||
if( !show ) m_selectedAnnotation = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user