> For the complete documentation index, see [llms.txt](https://docs.staruml.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.staruml.io/working-with-uml-diagrams/timing-diagram.md).

# Timing Diagram

![Timing Diagram (from uml-diagram.org)](/files/-MI2z3dRhLl5jp1VghUI)

## Create Timing Diagram

To create a Timing Diagram:

1. Select first an element where a new Timing Diagram to be contained as a child.
2. Select **Model | Add Diagram | Timing Diagram** in Menu Bar or select **Add Diagram | Timing Diagram** in Context Menu.

> **See also**
>
> [UML Timing Diagram](https://www.uml-diagrams.org/timing-diagrams.html) - For more information about UML Timing Diagram.

## Lifeline

To create a Lifeline:

1. Select **Lifeline** in **Toolbox**.
2. Drag on the diagram as the size of Lifeline.

To create a Lifeline from a Classifier (Class, Interface, etc.) by Drag-and-Drop:

1. Drag a Classifier from **Explorer**.
2. Drop on the diagram.

You can use **QuickEdit** for Lifeline by double-click or press `Enter` on a selected Lifeline.

* **Lifeline Expression** : Edit lifeline expression.
* **Visibility** : Change visibility property.
* **Select Type** : Select a type of the lifeline.
* **Create Type** : Create a Class as a type of the lifeline.
* **Create State/Condition** : Create a State/Condition on the lifeline.

## State/Condition

To create a State/Condition:

1. Select **State/Condition** in **Toolbox**.
2. Click on a Lifeline on the diagram.

You can use **QuickEdit** for State/Condition by double-click or press `Enter` on a selected State/Condition.

* **Name Expression** : Edit state/condition name.
* **Visibility** : Change visibility property.
* **Create Time Segment** : Create a Time Segment on the State/Condition.

## Time Segment

To create a Time Segment

1. Select **Time Segment** in **Toolbox**.
2. Click on a State/Condition area on the diagram.

## Time Tick

To create a Time Tick

1. Select **Time Tick** in **Toolbox**.
2. Click on the Timing Diagram Frame area on the diagram.

## Time Constraint

To create a Time Constraint

1. Select **Time Constraint** in **Toolbox**.
2. Click on an element (e.g. Message or Time Segment) to attach a time constraint on the diagram.

## Duration Constraint

To create a Duration Constraint

1. Select **Duration Constraint** in **Toolbox**.
2. Drag on the diagram as the size of Duration Constraint.

## Message

To create a Message:

1. Select **Message** in **Toolbox**.
2. Drag from a Time Segment and drop on another Time Segment.

For more about Message, visit the [Message](/working-with-uml-diagrams/sequence-diagram.md#message) section in Sequence Diagram.
