- How about just calling wget (or lftp) for the transfer and examine its log for the timing?
- How about using the "here document" functionality of bash to pass FTP commands?
Code:
time ftp some_ftp_server <<EOL
your_ftp_commands
EOL
(not tested, but should work just fine)
-You could also call the "date" command from within FTP shell, e.g.
Code:
some_ftp_command
!date >> logfile
some_other_ftp_command
"!" is used to perform system commands from within FTP.