GlobalStats is used to track some summary statistics during file transfers. More...
#include <FCStateAndStats.hpp>
Public Member Functions | |
GlobalStats () | |
GlobalStats & | clear () |
Public Attributes | |
uint64_t | totalNumberOfFilesSent |
The total number of files uploaded from the client to the server. More... | |
uint64_t | totalNumberOfFilesReceived |
The total number of files downloaded from the server to the client. More... | |
uint64_t | remainingNumberOfFilesToSend |
The total number of files left to upload to the server. More... | |
uint64_t | remainingNumberOfFilesToReceive |
The total number of files left to download from the server. More... | |
uint64_t | totalNumberOfPayloadBytesTransferred |
The total number of bytes that have been uploaded or downloaded. More... | |
uint64_t | totalNumberOfPayloadBytesSkipped |
Number of bytes that were skipped due to auto-resume of a previous partial file transfers. More... | |
uint64_t | remainingNumberOfPayloadBytesToTransfer |
The number of bytes remaining to upload or download. More... | |
uint64_t | bitsPerSecondAverageTransferRate |
The calculated average transfer rate. More... | |
std::chrono::high_resolution_clock::time_point | timeStarted |
The absolute time when the current set of transfers started. More... | |
std::chrono::high_resolution_clock::duration | timeRemaining |
A relative amount of time, from "now" , indicating how much time remains before the current set of transfers has completed. More... | |
GlobalStats is used to track some summary statistics during file transfers.
If access to the statistics is needed during the transfer (versus after the transfer has finished) then please see the statistics callback function fc::Control::setStatsCallback().
fc::GlobalStats::GlobalStats | ( | ) |
fc::GlobalStats & fc::GlobalStats::clear | ( | ) |
uint64_t fc::GlobalStats::totalNumberOfFilesSent |
The total number of files uploaded from the client to the server.
This number is not reset between transfers unless a call is made to clear().
uint64_t fc::GlobalStats::totalNumberOfFilesReceived |
The total number of files downloaded from the server to the client.
This value is not reset between transfers unless an explicit call is made to clear().
uint64_t fc::GlobalStats::remainingNumberOfFilesToSend |
The total number of files left to upload to the server.
uint64_t fc::GlobalStats::remainingNumberOfFilesToReceive |
The total number of files left to download from the server.
uint64_t fc::GlobalStats::totalNumberOfPayloadBytesTransferred |
The total number of bytes that have been uploaded or downloaded.
This includes bytes that were skipped. This value is not reset between transfers unless an explicit call is made to clear().
uint64_t fc::GlobalStats::totalNumberOfPayloadBytesSkipped |
Number of bytes that were skipped due to auto-resume of a previous partial file transfers.
This value is not reset between transfers unless an explicit call is made to clear().
totalNumberOfPlayloadBytesSkipped
in older versions of FC++. Client code that was built against FC++ prior to August 2016 and which reference the global stats will need to fix this typo.uint64_t fc::GlobalStats::remainingNumberOfPayloadBytesToTransfer |
The number of bytes remaining to upload or download.
uint64_t fc::GlobalStats::bitsPerSecondAverageTransferRate |
The calculated average transfer rate.
std::chrono::high_resolution_clock::time_point fc::GlobalStats::timeStarted |
The absolute time when the current set of transfers started.
If there are no active transfers, then this will be the previous set of file transfers.
std::chrono::high_resolution_clock::duration fc::GlobalStats::timeRemaining |
A relative amount of time, from "now"
, indicating how much time remains before the current set of transfers has completed.