Measure endtime in server