Back to product page

TransferTime function


Returns time needed to transfer current or previous file.

Type

Returns time needed to transfer current or previous file.

Syntax

  • C
long Sftp_GetTransferTime(void *Sftp, long *pVal);
The TransferTime(void *Sftp,long *pVal, newVal) syntax has these parts:
void *SftpHandle of the created Sftp instance.
long *pVal, newValA Long value. Specifies max speed.

Remarks

TransferTime returns number of seconds since current file transfer has started, or total number of seconds of previous file transfer, if there are no transfers in progress anymore. You can use it in Done callback to show basic information about the transfer, together with transfer speed in TransferRate property.

Platforms

Windows