• guybe7's avatar
    Modules: Improve timer accuracy (#7987) · 1a91a270
    guybe7 authored
    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'
    1a91a270
module.c 326 KB