Difference between revisions of "Truxton media get percent complete"
Jump to navigation
Jump to search
| Line 12: | Line 12: | ||
=Return value= | =Return value= | ||
| − | The percentage of completeness of the processing of the data in the media. | + | The percentage of [[Media Load Percentage|completeness]] of the processing of the data in the media. |
=Sample= | =Sample= | ||
Revision as of 09:08, 21 October 2020
This retrieves the percent complete of the processing of the media.
This corresponds to the [PercentComplete] column of the [Media] table.
Syntax
uint64_t truxton_media_get_percent_complete( uint64_t media_handle );
Parameters
media_handle
The handle created by the truxton_media_open_id or truxton_media_create call.
Return value
The percentage of completeness of the processing of the data in the media.
Sample
void is_complete(uint64_t media)
{
uint64_t percent_complete = truxton_media_get_percent_complete( media );
if ( percent_complete > 99 )
{
printf( "The media has done\n" );
}
else
{
printf( "The media is %" PRIu64 " percent complete\n", percent_complete );
}
}