From: Gavin Lambert (boost_at_[hidden])
Date: 2019-08-26 04:04:30
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).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk