measure time in the client.