Skip to content

kraziant/timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timer

Single-header C++11 lib. Was inpsired by the timercpp library.

Made it just-for-fun.

#include "timer.h"

///

timer::set_timeout st{[](){std::cout<<"tick...\n";}, std::chrono::milliseconds(100)};
// wait 100 ms and tick... 

timer::interval inter{[](){std::cout<<"tack...\n";}, std::chrono::milliseconds(100)};
//tack... every 100 ms since creation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published