Measure elapsed time

and send it to server.