docs: fix time_posttransfer output unit as seconds

Closes #19986
This commit is contained in:
Sergey Katsubo 2025-12-16 00:04:14 +03:00 committed by Daniel Stenberg
parent 6a3d0b6d63
commit 9570fa7908
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 3 deletions

View file

@ -245,8 +245,8 @@ The time, in seconds, it took from the start until the name resolving was
completed.
## `time_posttransfer`
The time it took from the start until the last byte is sent by libcurl.
In microseconds. (Added in 8.10.0)
The time, in seconds, it took from the start until the last byte is sent
by libcurl. (Added in 8.10.0)
## `time_pretransfer`
The time, in seconds, it took from the start until the file transfer was just

View file

@ -53,7 +53,7 @@ int main(void)
res = curl_easy_getinfo(curl, CURLINFO_POSTTRANSFER_TIME_T,
&posttransfer);
if(CURLE_OK == res) {
printf("Request sent after: %" CURL_FORMAT_CURL_OFF_T ".%06ld us",
printf("Request sent after: %" CURL_FORMAT_CURL_OFF_T ".%06ld s",
posttransfer / 1000000, (long)(posttransfer % 1000000));
}
}