create a shell script (ie. ftpscript.sh) and use the following code (modify the line with execute shell command):
#!/bin/shFull post / more »»
start=$(date +%s) ## get current time/date to $start
{ ./lftpscript.sh; } ## execute shell command / program ./lftpscript.sh in this example
stopped=$(date +%s)
thetime=$(($stopped-$start)) ## doing some math in shell calculating time difference
echo "Time needed: " $(date -d "1970-01-01 $thetime sec" +"%H:%M:%S") / $thetime "secs" ## prints out the time ( like: 00:01:29 / 89 secs )