Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / GetSeconds ( )

Author
Message
djeronimo
13
Years of Service
User Offline
Joined: 2nd May 2011
Location: Sarajevo
Posted: 19th Apr 2012 16:56
Hello to all,

could anyone please tell me how to get snapshot of current time. I'm trying with GetSeconds ( ) to print time elapsed at the end of the game. But my time is continue to count. I need to print time at the end of the game and stop it.

Thank you all

This is my code:



@djeronimo.com
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 19th Apr 2012 19:26 Edited at: 19th Apr 2012 19:27
Do something like this:



ONCE when the level starts.

Also, this:



Every loop.
When the game triggers the end, display start_time#-very_start_time#. It won't keep on counting.

djeronimo
13
Years of Service
User Offline
Joined: 2nd May 2011
Location: Sarajevo
Posted: 22nd Apr 2012 23:59
Thank you kamac

@djeronimo.com

Login to post a reply

Server time is: 2024-11-23 09:14:34
Your offset time is: 2024-11-23 09:14:34