Code structure for synchronized events in time

Nice, I’ll try this way, thanks!

Usefull links related to this