34 this->maxFrequency = maxFrequency;
45 std::unique_lock lock(mutex);
46 auto it = operationData.find(operationName);
47 if (it == operationData.end())
49 float maxFrequency = frequency ? *frequency : this->maxFrequency;
50 operationData[operationName] = {now, maxFrequency};
55 SkippingData&
data = it->second;
56 float maxFrequency = frequency ? *frequency :
data.maxFrequency;
57 float minInterval = 1.0 / maxFrequency;
58 if (now <
data.lastTimestamp + IceUtil::Time::secondsDouble(minInterval))
64 data.lastTimestamp = now;