Closed ohenepee closed 8 years ago
Found this ONLINE... maybe you could integrate it as a convenient function
transfer_speed = bytes_transferred / ( current_time - start_time)
Response.AverageBytesPerSecond()
will give you the average speed over the duration of the transfer and is constantly updated while the transfer is in process. It works precisely how you described.
I'm looking to implement a CurrentBytesPerSecond
function, but this will require an additional timer to mark the passage of each second. It's also frightfully difficult to produce nice steady and accurate numbers when updating on a timer.
How can I get the download speed?