Hi,
I've these 2 UNIX timestamps values taken from the java method System.currentTimeMillis(). These 2 timestamps correspond to the start time and the end time of 2 process that ran. Here are the values:
Code:
starttime ---------------- endtime
1301005328042 ----------- 1301005352079
1301005460357 ----------- 1301005484394
Now I would like to take an average of the duration that both tasks took. I was thing to do : (allendtime-allstarttimes)/2, but I think it's incorrect.
How can I take an average from UNIX timestamps?
Thanks,