I have the following server-side code, in which I am calculating a number of frames received per second from client-side and similarly on client-side I am calculating number