C++ Quad-Tree Heap Timer, inspired by Golang Quad-Tree Heap Timer. header only, no dependencies.
HeapTimer t;
// add two timer with 1000ms
auto t1 = t.Add(1000);
auto t2 = t.Add(1000);
// delete the second timer
t.Del(t2);
// wait for 1000ms
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
// update the timer, return the expired timers t1
auto ret = t.Update();mkdir build
cd build
cmake ..
make