從這段代碼,我該如何返回上傳速度?Indy上傳速度
procedure TForm1.Button1Click(Sender: TObject);
begin
ftp.Host := 'domain';
ftp.Username := 'username';
ftp.password := 'password';
ftp.Connect;
ftp.Put('random-filename.ext'); //This is where it should grab only the latest file
//label1.caption := 'Download Speed: %s';
ftp.Quit;
ftp.Disconnect;
end;
會計時器是必要的嗎?
謝謝。