26 Aug
2019
26 Aug
'19
4:04 a.m.
On 26/08/2019 15:49, JH wrote:
How can I set deadline_timer expired at real clock absolute time at 0 minute, then repeat every minute? So it should expired at: 13:40:00, 13:41:00, 13:42:00 and so on?
Call timer.expires_at(when), where "when" is the ptime that you have calculated as the "next minute" time. Bear in mind that there may be some events (eg. PC sleep, processing overshoot) where you may need to skip some minutes, so you should generally calculate this time relative to when you actually finished the previous processing cycle (if this is a cyclic timer).