Quote:
initially, that's what i had in my hack, but the numbers were most of the time messed..
|
jepp, no wonder if starttime is allways set to zero. You would get funny looking huge values most of the time

(exactly the difference to 1.1.1970

) btw. how do you calculate times over 1 sec with not handling the seconds part of microtime at all in your totaltime?
Quote:
leave the rest unchanged, it should work fine, the starttime must be set to zero.
|
sorry to disagree here as well... But if starttime is set to zero you will never get correct values.. The reason why the mysql part works is easy. You don't subtract the endtime from the starttime directly but go over some interims vars (beforetime, aftertime), so the starttime part isn't invovled in the calculating at all.
So, just give my modifications a chance and try them out, you'll see they would work. I have no clue why it is working on vB.org, but I doubt they use your code in it's original form.
This is btw. a really nice hack - I like it very much therefore I tried to make it work and excamined it a little bit more than usual.
JDD