Timer in GameBlender

1) Open Blender.In 3D window(Shift+F5) create three planes(Fig.1).Make them to diplay text in game engine(Text in GameBlender).Select the first plane on the left.Press F8 to display Realtime Buttons.Add a Timer Property named Time.

Fig 1

Fig 2

Open Text window (Shift+F11) add a new script .Write the script below and name it "minut":

import math
import GameLogic
contr=GameLogic.getCurrentController()
owner=contr.getOwner()

for i in range(0,20):
 if owner.Time>=60*i:
    owner.Text=i

Then in the realtime buttons add an Always sensor .Attach it to a Python Controller with "minut" script. Make the same thing for the middle plane with the difference that the script is :

 

import math
import GameLogic
contr=GameLogic.getCurrentController()
owner=contr.getOwner()

for i in range(0,100):
 if owner.Time >= 60*i:
    owner.Text=int(owner.Time)-60*i

and it's named "second.(also in the python controller).For the third plane the script named "decimal" is:

 

import math
import GameLogic
contr=GameLogic.getCurrentController()
owner=contr.getOwner()
owner.Text=int((owner.Time-int(owner.Time))*100)

-Now press Alt+Z in the 3D window and then P. Voila! Get here the blend file timer.zip