Skip to content

esrrhs/heap_timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeapTimer

C++ Quad-Tree Heap Timer, inspired by Golang Quad-Tree Heap Timer. header only, no dependencies.

Usage

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();

Build

mkdir build
cd build
cmake ..
make

About

C++ Quad-Tree Heap Timer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors