Answer the question
In order to leave comments, you need to log in
Is there a synchronous analogue of Timer?
There is an Update( ) method
which contains a series of checks of the form
if ( System.currentTimeMillis() - old_run_1 >= 1000 )
{
// Что-то
}
Answer the question
In order to leave comments, you need to log in
A timer without a thread is a normal loop with checking the current time and sleeping on each iteration.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question