an infinite loop
{
condition check.
}`. You need to add a sleep function to the loop. Also, it would be better if it runs in a separate thread (it is not clear from the code whether it is wrapped in a thread or not).
New here? I'm Roha — want a quick tour?
an infinite loop
{
condition check.
}`. You need to add a sleep function to the loop. Also, it would be better if it runs in a separate thread (it is not clear from the code whether it is wrapped in a thread or not).