Skip to content

replace system_clock with steady_clock? #142

@ruudvd

Description

@ruudvd

Currently in Timer/TimerPool std::system_clock is used for triggering timers. In our testing we got a high CPU usage if the time synchronization is later then the application is started. The initial std::system_clock time point was before the time synchronization took place. After system time does get synchronized, the time jumps forward multiple years, leading to constant triggering of the timers. Using std::steady_clock resolves this issue. Can std::steady_clock be used in the implementation instead of std::system_clock, or is there a reason why std::system_clock is used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions