I have the following code, I am calculating time taken to send frames per second from client to server, basically calculating the percentage of frames drop rate and time ta