private void DoIterate() { int time1 = Math.Min(_tox1.Iterate(), _tox2.Iterate()); int time2 = Math.Min(_toxAv1.Iterate(), _toxAv2.Iterate()); Thread.Sleep(Math.Min(time1, time2)); }