Countdown

 

Hello programmers!

 How can I set a countdown of, say 5 seconds that restarts when the value is equal to zero? I will appreciate your help please.

 
long count = 5 - (TimeCurrent() % 5 ); // [5…1]