texmf-dist/doc/latex/pgf-umlsd/demo/sync-clock.tex
raw| 1 | \begin{sequencediagram} |
| 2 | \newthread{a}{:Machine A} |
| 3 | \newthread[gray]{b}{:Machine B} |
| 4 | |
| 5 | \mess[1]{a}{}{b} |
| 6 | \node[anchor=east] (t0) at (mess from) {$t_0$}; |
| 7 | \node[anchor=west] (t1) at (mess to) {$t_1$}; |
| 8 | \prelevel |
| 9 | \mess[1]{b}{}{a} |
| 10 | \node[anchor=east] (t2) at (mess to) {$t_2$}; |
| 11 | |
| 12 | \path (t0.east) |- coordinate(t12) (t1); |
| 13 | \draw[dashed] (t1) -- (t12); |
| 14 | \node[anchor=south west] at (t12) {$\Delta{}t_1$}; |
| 15 | \node[anchor=north west] at (t12) {$\Delta{}t_2$}; |
| 16 | \end{sequencediagram} |