26template<
size_t Quota,
unsigned long Period=1>
31 auto limit = now - std::chrono::seconds(Period);
32 while (not records.empty() and records.front() <
limit)
34 return records.size();
37 bool limit(
const time_point& now) {
44 return records.empty();
47 std::queue<time_point> records {};
bool limit(const time_point &now)
size_t maintain(const time_point &now)