So like.. I spent ages searching around on the intarwebz for a piece of code which would convert milliseconds to a human readable string (0 days, 0 hrs, 0 mins, 0 secs) etc, but could I find one? No lol. So I wrote one instead :D

To use the below, use it exactly as you would with getElapsed. The only difference being, it will return a human readable string, rather than the number of milliseconds.

i think you should consider switching to the modulo operator as opposed to performing your calculations in while() loops...

foxwhisper

26 Jan 2009, 12:22 PM

Really sorry for the 'noobish' question but.. Do you have an example of a 'modulo operation' in JavaScript?? I feel so stupid asking, but it's not a term I've come across before in my programming years :o

Cal <3

wemerson.januario

26 Jan 2009, 12:41 PM

Can you post a pratic example of the use? I fell stupid asking too! heheh Thanks