Updated code for measuring elapsed time with multiple clients.