78 bool add(std::uint64_t val)
173 bool tick(std::uint64_t currtime_usec, std::uint64_t &deltatime_usec)
180 deltatime_usec =
delta;
212 deltatime_usec =
delta;
231 bool alert(std::uint64_t &deltatime_usec)
const
233 deltatime_usec =
delta;
296 bool tick(std::uint64_t deltatime_usec, std::uint64_t timestamp)
304 else if(deltatime_usec <= 0)
348 bool alert(std::uint64_t &deltatime_usec)
const
350 deltatime_usec =
delta;
387 return pImpl->init(config);
393 return pImpl->reset();
399 return pImpl->add(value);
404 return &pImpl->status.config;
409 return &pImpl->status.values;
478 if(0 == pImpl->status.values.total)
484 values.resize(pImpl->status.values.inside.size() + 2);
486 values[0] =
static_cast<double>(pImpl->status.values.below) /
static_cast<double>(pImpl->status.values.total);
488 for(
int i=0; i<pImpl->status.values.inside.size(); i++)
490 values[i+1] =
static_cast<double>(pImpl->status.values.inside[i]) /
static_cast<double>(pImpl->status.values.total);
493 values[values.size()-1] =
static_cast<double>(pImpl->status.values.beyond) /
static_cast<double>(pImpl->status.values.total);
500 if(0 == pImpl->status.values.total)
506 values.resize(pImpl->status.values.inside.size() + 2);
508 values[0] =
static_cast<std::uint32_t
>(scale * pImpl->status.values.below / pImpl->status.values.total);
510 for(
int i=0; i<pImpl->status.values.inside.size(); i++)
512 values[i+1] =
static_cast<std::uint32_t
>(scale * pImpl->status.values.inside[i] / pImpl->status.values.total);
515 values[values.size()-1] =
static_cast<std::uint32_t
>(scale * pImpl->status.values.beyond / pImpl->status.values.total);
535 return pImpl->init(config);
541 return pImpl->tick(currtime_usec, deltatime_usec);
547 return pImpl->reset();
553 return pImpl->alert(deltatime_usec);
558 return pImpl->report();
564 return &pImpl->histo;
585 return pImpl->init(config);
591 return pImpl->tick(deltatime_usec, timestamp);
597 return pImpl->reset();
603 return pImpl->alert(deltatime_usec);
608 return pImpl->report();
614 return &pImpl->histo;
620 return pImpl->isInited();