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.

Code Snippets / [DBP] - elapsed time in a formatted stirng

Author
Message
JRNTexas
11
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 19th Aug 2011 10:46
Here's my first contribution to "Code Snippets."

I needed to display the elapsed time in my game and didn't find this time on the site"

Here is the code that calls the function:


Here is the function:


Hope someone fins it useful.
JRNTexas
11
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 20th Aug 2011 00:40
My first time to contribute and I copied the code with a mistake in it . The 359 should have been 3599 and the 360 should have been 3600.

So here is the corrected code:

Bluespark
11
Years of Service
User Offline
Joined: 18th Mar 2011
Location:
Posted: 20th Aug 2011 18:59
No worries.
You did know that you could use Copy and Paste instead of copying by hand?
Daygamer
12
Years of Service
User Offline
Joined: 16th Mar 2010
Location: United States
Posted: 22nd Aug 2011 03:56
@JRNTexas,

That's sweet man. Seriously, I'm rather impressed. That concept is not as easy as it appears in the program Good job!

Phaelax
DBPro Master
19
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Aug 2011 05:21
Now make the time display in roman numerals

SH4773R
12
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 28th Aug 2011 04:21
nice job

JRNTexas
11
Years of Service
User Offline
Joined: 24th May 2011
Location: Austin, Texas
Posted: 2nd Sep 2011 06:57
Thanks for the feedback!

Login to post a reply

Server time is: 2022-11-30 13:17:59
Your offset time is: 2022-11-30 13:17:59