14 auto start = std::chrono::high_resolution_clock::now();
15 bool instances_accepted =
false;
16 std::int64_t current = 0;
20 if(this->lastTimesPerEntity.end() == this->lastTimesPerEntity.find(memID)){
26 auto lastT = firstInsance.metadata().sentTime.toMilliSecondsSinceEpoch();
28 auto end = std::chrono::high_resolution_clock::now();
33 this->lastTimesPerEntity[memID] = lastT;
37 auto lastTime = this->lastTimesPerEntity.at(memID);
43 if(difference > this->maxDifference){
44 instances_accepted =
true;
49 if(instances_accepted){
51 this->lastTimesPerEntity[memID] = current;
56 auto end = std::chrono::high_resolution_clock::now();
60 if(instances_accepted){
66 return instances_accepted;