date = new Date();
endTime=date.getTime();
calcThroughput();
