Help me figure out how to implement the method call in C # after 60 seconds? That is, I launched, for example, a program that should always be executed until I close it myself. Then the method is immediately executed, after its completion a wait of 60 seconds. and start the method from the beginning. Thoughts are as follows:
static void Main(string[] args) { StartProgram start = new StartProgram(); while (true) { start.Circle(); System.Threading.Thread.Sleep(60000); } } Or :
TimerCallback tm = new TimerCallback(start.Circle); Timer timer = new Timer(tm, null, 0, 60000); Or how to turn the program in a circle?