mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 04:43:53 +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::TextUnformatted( ann->text.c_str() );
|
||||||
}
|
}
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
TextFocused( "Annotation begin:", TimeToString( ann->range.min ) );
|
TextFocused( "Annotation begin:", TimeToStringExact( ann->range.min ) );
|
||||||
TextFocused( "Annotation end:", TimeToString( ann->range.max ) );
|
TextFocused( "Annotation end:", TimeToStringExact( ann->range.max ) );
|
||||||
TextFocused( "Annotation length:", TimeToString( ann->range.max - ann->range.min ) );
|
TextFocused( "Annotation length:", TimeToString( ann->range.max - ann->range.min ) );
|
||||||
ImGui::EndTooltip();
|
ImGui::EndTooltip();
|
||||||
}
|
}
|
||||||
@ -14306,8 +14306,8 @@ void View::DrawSelectedAnnotation()
|
|||||||
ImGui::ColorEdit3( "Color", &col.x );
|
ImGui::ColorEdit3( "Color", &col.x );
|
||||||
m_selectedAnnotation->color = ImGui::ColorConvertFloat4ToU32( col );
|
m_selectedAnnotation->color = ImGui::ColorConvertFloat4ToU32( col );
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
TextFocused( "Annotation begin:", TimeToString( m_selectedAnnotation->range.min ) );
|
TextFocused( "Annotation begin:", TimeToStringExact( m_selectedAnnotation->range.min ) );
|
||||||
TextFocused( "Annotation end:", TimeToString( m_selectedAnnotation->range.max ) );
|
TextFocused( "Annotation end:", TimeToStringExact( m_selectedAnnotation->range.max ) );
|
||||||
TextFocused( "Annotation length:", TimeToString( m_selectedAnnotation->range.max - m_selectedAnnotation->range.min ) );
|
TextFocused( "Annotation length:", TimeToString( m_selectedAnnotation->range.max - m_selectedAnnotation->range.min ) );
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
if( !show ) m_selectedAnnotation = nullptr;
|
if( !show ) m_selectedAnnotation = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user