or more practicaly, just get the current time
t=timer()
so now t holds the time in millisecs
add the delay, for 5 minutes you need 300 seconds times the number of millisecs eg:-
t=t+(300*1000)
this value is 300,000 milliseconds larger than the timer value was when you checked it, thats 5 minutes until the timer counts up to this value, so in your main loop do this
if timer()>=t
Explode_Bomb()
endif
note that you check for the timer being equal
or greater than the calculated value, if your program was doing a lot in the main loop then it may only repeat every 50 millisecs (20fps), so you may get the case where on the last loop the timer was 10 millisecs smaller than the calculated value, and on the next loop its 40 millisecs larger, so it never actualy equals the value when the check is done, so you test for it being equal or larger just in case it overuns the value, hope thats some help.
Mentor.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster.