Page 1 of 1

Time in Seconds?

Posted: 29 Jun 2011, 11:44
by Von66341
Hey!

Anyone know how I can the game time in seconds?

Say if it is 10minutes it will display 600 seconds?

I know os.date can give time in Hours:Mins:Seconds, however looking for all in seconds.

Thanks!

Re: Time in Seconds?

Posted: 29 Jun 2011, 11:57
by AF
1 second of gametime = 30 game frames iirc

assuming that there is no lag: gametime == realtime

Re: Time in Seconds?

Posted: 29 Jun 2011, 12:50
by Niobium
Spring.GetGameSeconds

Re: Time in Seconds?

Posted: 01 Jul 2011, 13:57
by Von66341
Thanks lots!