guybe7 c01b72f30d Modules: Improve timer accuracy (#7987)
The bug occurs when 'callback' re-registers itself to a point
in the future and the execution time in non-negligible:
'now' refers to time BEFORE callback was executed and is used
to calculate 'next_period'.
We must get the actual current time when calculating 'next_period'

(cherry picked from commit 9cbdc8dcdbaf96869251dd9728c0876adf1b2492)
2021-01-12 16:25:37 +02:00
..
2019-11-20 20:39:04 -05:00
2020-05-08 10:37:35 +02:00
2020-04-28 11:20:15 +02:00
2020-04-28 11:20:15 +02:00
2021-01-12 16:25:37 +02:00
2018-07-03 18:19:46 +02:00
2019-02-24 21:38:15 +01:00
2020-10-27 09:12:01 +02:00
2019-10-24 14:24:55 +03:00
2020-10-27 09:12:01 +02:00
2020-05-08 10:37:36 +02:00
2020-10-27 09:12:01 +02:00
2019-11-19 17:23:47 +08:00
2020-04-07 16:52:04 +02:00
2018-07-03 18:19:46 +02:00
2019-10-02 11:30:20 +02:00
2020-03-05 12:51:15 +01:00
2020-09-01 09:27:58 +03:00
2020-10-27 09:12:01 +02:00