Home

Main Page

Welcome! to SecondLevelCronTimer wiki.

What is SecondLevelCronTimer?

SecondLevelCronTimer (SLCT) is a C++ library that provides a timer that can be specified using a crontab like timing string. The main difference between cron and SLCT is the precision. SLCT uses a second field, allowing time to be specified down to the second.

Features:
  • Increased precision (down to the second)
  • Very simple to use
  • Support for (just about) all crontab formats; If it works in crontab, it works in SLCT

Example:

Here is a short example, showing how to use the library:

SecondLevelCronTimer timer("0 0 22 * * *");  // run at 22:00:00, every day

timer.sleepUntilValid();
std:cout << "It's 10 pm.  Do you know where your children are?" << std::endl;

Documentation:

Documentation, both user and developer level, is provided using Doxygen. See to doc/ subdirectory in the download package for more details.

License

SLCT is Free Software released under the BSD 3-clause license
(This license is also known as the "New BSD License" or "Modified BSD License").

You will find a copy of the license included with the downloadable source distribution.

Support

If you find this package useful, please consider a donation.

Download


Auth0 Logo