tags:

views:

437

answers:

2

Hi! I'm using TeraTerm to transfer a file through a dial up connection, for this I will use ttl scripts in both ends to automatize it. I would like to measure the time it takes to transfer the file, or the transfer rate... but I don't know how to do it? Does anyone have any idea? Thanks a lot

A: 

Probably you can call gettime before and after and then use those two points to calculate the time used.

hlovdal
A: 

gettime will give you the time but you need to get the correct times to properly calculate the throughput. You need to gettime on the side that is sending the data at the start of the sending. Then gettime on the side receiving at the end of the receive. Send the gettime from one of the sides to the other and do the math. Keep in mind each machine must have synchronized time. So each should be using a time server.

Leon