Basic timers for cpp with a callback. Header only. Executes the callback routine after each interval.
C++17 ready compiler.
#include"timer.hpp"voidmyCoolFunc(void*){printf("Callback !\n");}
/** snip **/unsignedint interval = 1000; //interval in millisecond
timer myTimer("myCoolTimer", interval, myCoolFunc, NULL);
myTimer.start();
/** snip **/
myTimer.stop();git clone https://github.com/Perceval62/timer.git
cd timer
mkdir build &&cd build
cmake ..
makeVincent Perrier 21-10-2021