Something like this: OLD_M=MILLISEC WHILE 1 NEW_M=(MILLISEC-OLD_M) DIV 60 IF NEW_M==60 THEN '1 Minute 'Do stuff ENDIF WEND