periodic-function
periodic-function copied to clipboard
Small header only library to call a function at a specific time interval.
There are a few problems with the current implementation include: * Timing accuracy is not within the target claim * A new thread is created for each `periodic_function` object. The...
uint64_t check_point_1_last = TimeUtil::GetNowMillsecond(); uint64_t check_point_2_last = TimeUtil::GetNowMillsecond(); dp::periodic_function fu([&]() { auto now = TimeUtil::GetNowMillsecond(); LOGD
Function timings seem to be very wildly inconsistent based on test runs. Sample output from unit tests: ``` Elapsed time: 312 Elapsed time: 305 Elapsed time: 346 Elapsed time: 303...