N
N
NeoLight22020-06-25 16:15:48
C++ / C#
NeoLight2, 2020-06-25 16:15:48

How to execute a method with a certain delay a certain time?

How can I constantly execute a method with a delay until the Timer completes?
There is a method NetworkSounds.askSound();
How can I use a timer to call it every second until the timer expires?

5ef4a37ed4ca8606690945.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Pavlov, 2020-06-25
@Stalker31

For delay, you can useThread.Sleep(/*время задержки в миллисекундах*/);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question