Topic "Average File Transfer Speed"

Author Message
tsothcott
[View user's profile]

Joined: 2013-07-26
Posts: 2
Location: United Kingdom
Just wondering if my math is correct here?

Code:
AverageMBps = (((info.Length / stopwatch.Elapsed.TotalSeconds) / 1024) / 1024);


Where info.length is the file size in bytes
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Yes, if you calculate this post-transfer.

During transfer, you can take advantage of Session.FileTransferProgress:
http://winscp.net/eng/docs/library_session_filetransferprogress
http://winscp.net/eng/docs/library_filetransferprogresseventargs
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License