@startuml start partition init { :setup serial connection; :print "ready"; } while (repeat every few millisecond) partition loop { ;resolve currentSecond; if (currentSecond mod 12 < 9 ?) equals (yes) then :print "good"; else (no) :print "bad"; endif :wait 1s; } endwhile -[hidden]-> kill @enduml