I am almost done making this winsock chat program and i just finished the file transfer part of it. The transfer works perfecetly except for i don't know how to calculate the kb/sec speed. On the form it has labels that store the files size, and how many bytes have been sent. Any ideas on how to calculate the kb/sec?