32 const uint16 max = max_limit<uint16>();
36 std::string::size_type s_len;
37 std::string::size_type idx;
43 for (x = 0; x != max; ++x) {
49 dp =
static_cast<double>(x) / static_cast<double>(max);
50 ip =
static_cast<unsigned int>(dp);
71 int main(
int argc,
char const * argv[])
Basic types definitions and templates.
std::string percent_string(const T &a_complete, const T &a_total)
Given a count complete and a count total, calculate a percentage.
int main(int argc, char const *argv[])
void start(void)
Start (or restart) the timer.
const std::string eta(unsigned int a_percent_complete) const
Given a percent-complete for some unknown task, estimate a time to completion.
void stop(void)
Stop the timer.