How to calculate ISP bandwidth
I am trying to write a program for my router that will calculate my broadband speed (DN/UP) periodically say every 6 hrs (total of 4/day) and display in the Router "WAN" page. Is there something already out there in Open Source forums (part of GPL etc)?
example: Start a timer, download a file (ftp?) of a known size, stop the timer and then used the time delta and file size to calculate the BW etc?
Any help/suggestion would be greatly appreciated! A sample code would be a great start!