Click here to Skip to main content
15,301,841 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can display speed of internet in graphical chart by using

1 solution

  • starting a timer
  • downloading a resource
  • stopping the timer
  • dividing (stopTime-startTime) by numOfBytes in resource


start timer - 18:47.00
download - 105kb
stop timer - 18:47.01

Speed of _this_ download = 105kb / (18:47.01 - 18:47.00)
= 105kb / 1second
= 105kb/s

Just do this a couple of times for different resources then tally the results
avgSpeed(kb/s) = (size of totalDownloads kb) / (time of downloads s)

Then, you simply graph the result(s)
Kenneth Haugland 14-Aug-12 14:42pm
From OP:
can you do that by simple example

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900