#include <EventBase.h>
Definition at line 553 of file EventBase.h.
folly::EventBase::SmoothLoopTime::SmoothLoopTime |
( |
std::chrono::microseconds |
timeInterval | ) |
|
|
inlineexplicit |
void folly::EventBase::SmoothLoopTime::addSample |
( |
std::chrono::microseconds |
total, |
|
|
std::chrono::microseconds |
busy |
|
) |
| |
Definition at line 671 of file EventBase.cpp.
Referenced by folly::EventBase::loopBody().
static constexpr std::chrono::milliseconds buffer_interval_
std::chrono::microseconds buffer_time_
std::chrono::microseconds busy_buffer_
void folly::EventBase::SmoothLoopTime::dampen |
( |
double |
factor | ) |
|
|
inline |
double folly::EventBase::SmoothLoopTime::get |
( |
| ) |
const |
|
inline |
void folly::EventBase::SmoothLoopTime::reset |
( |
double |
value = 0.0 | ) |
|
void folly::EventBase::SmoothLoopTime::setTimeInterval |
( |
std::chrono::microseconds |
timeInterval | ) |
|
std::size_t folly::EventBase::SmoothLoopTime::buffer_cnt_ {0} |
|
private |
constexpr std::chrono::milliseconds folly::EventBase::SmoothLoopTime::buffer_interval_ {10} |
|
staticprivate |
std::chrono::microseconds folly::EventBase::SmoothLoopTime::buffer_time_ {0} |
|
private |
std::chrono::microseconds folly::EventBase::SmoothLoopTime::busy_buffer_ {0} |
|
private |
double folly::EventBase::SmoothLoopTime::expCoeff_ |
|
private |
double folly::EventBase::SmoothLoopTime::value_ |
|
private |
The documentation for this class was generated from the following files: