+\r
+ timerTotal += read;\r
+ //Only report every second\r
+ if (watch.ElapsedMilliseconds > 1000)\r
+ {\r
+\r
+ var speed = 1000*timerTotal/(double) watch.ElapsedMilliseconds;\r
+ var percentage = Convert.ToInt32(100*total/(double) _blockSize);\r
+ _progress.Report(new UploadArgs(percentage, null, total, _blockSize, 0, 0, speed));\r
+ //Reset the counter and total\r
+ timerTotal = 0;\r
+ watch.Reset();\r
+ }\r