Skip to content
/ yatimer Public

yet another C++11 timer implementation. Header-only timer implementation

License

Notifications You must be signed in to change notification settings

yalibs/yatimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YA-TIMER

yet another c++11 timer implementation. Header-only timer implementation

Usage Notes

ya::timer cannot be "stopped", if you want to reset the timer just call .start again

The constructor takes an optional boolean argument whether to start at construction time or not. Default is true i.e. the timer starts automatically when constructed.

Example Usage

#include <timer> // include the library
ya::timer<int> t{}; // construct the timer
/* Do something that takes some time */
auto ms = t.milliseconds_elapsed(); // fetch milliseconds since you started

About

yet another C++11 timer implementation. Header-only timer implementation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published