why is this capturing relative values instead of capturing absolute values and doing the calculation on the server side?  You can do much more analysis on the server if you have absolute times.