If you want to do something after ''60'' seconds, for example, here is what you have to do :
If you want to do something after ''60'' seconds, for example, here is what you have to do :
−
<source>timeleft = 60-math.floor((math.abs(timer.getMilliSecCounter()) - math.abs(startTime))*0.001) -- startTime would be a variable defined earlier as '0', for instance.