title: Calculating Connection/Download Speed
body: <p>I have a client and server program (both in Obj-C) and I am transferring files between two devices using the programs.</p>
  
  <p>The transferring is working fine, but I would like to display to the user what transfer rate they are getting.</p>
  
  <p>So I know the total size of the file, and how much of the file has been transferred, is there a way to figure out the transfer rate from this information, and if not, what information do I need to calculate the transfer rate?</p>
  
  <p>Thanks</p>