Make a Clock Timer

I have a game where you continue playing as long as you can and the second you start it should start counting the time. Also when the game is over, it should stop. I want it to capture time like this:

days:hours:minutes:seconds

for example:

01:11:37:18

Can anyone help me out? [import]uid: 86518 topic_id: 32399 reply_id: 332399[/import]

Use os.time???

http://lua-users.org/wiki/DateAndTime [import]uid: 177091 topic_id: 32399 reply_id: 128901[/import]

Use os.time???

http://lua-users.org/wiki/DateAndTime [import]uid: 177091 topic_id: 32399 reply_id: 128901[/import]