working with time calculations?

Posted by Dagaswolf on Thu 26 Feb 2009 03:43 AM — 2 posts, 16,427 views.

USA #0
i am running into getting "-" values in my time calculation.

how do i compensate for calculating time?

like when it says 17 for the seconds in the start time, and 14 for the seconds in the end time... i get a value set of -3 seconds...

i have thought of doing:
(starttime / 60)*100 to get get a whole number
(endtime / 60)*100 to get get a whole number
then subtracting... but i still get a negative number... growl...

you know of any way to compensate for that?
USA #1
http://www.gammon.com.au/forum/?id=9282