Calculate speed per sec and time left of sending a file using sockets tcp c#

前端 未结 3 1831
慢半拍i
慢半拍i 2021-01-15 04:16

How can I calculate the speed per sec, and the time left in sec? I\'ve tried to use:

void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) {
    l         


        
3条回答
  •  抹茶落季
    2021-01-15 04:41

    You can't fix that. The only way to 'fix' it is by creating a constant speed network/internet.

    the network (and your computer) does not have a constant speed.

    The calculation tells you what it is.

提交回复
热议问题