Need to measure broadband speed in C#
Posted on 2007-10-10
I need to measure bandwidth in C# so I can make a program that run several times in the day and see variations in bandwidth. But I have no clue.
I tried downloading a file from a server, take initial time and take finish time and divide the number of bytes between the number of seconds the operation took. But I checked the results against several online meters and my results are very different and dependant on the size of the file I download/upload, so I guess this method is not right.
Can someone give some directions?