I am trying to implement a Speed Test on my application. To do so I was thinking of doing the following.
For the download speed, I am going to download a file from my server and time it until completion and the download speed would be the (size of file)/(amount of time to download).
For the upload speed, I am going to upload a file to my server and time it until completion and the upload speed would be (size of file)/(amount of time to upload).
Am I going the correct way about it? Also how would I calculate the Ping or Latency?