why you put the timer start in the loop? I do not particularly clearly the functions implemented by the program