Skip to content

Should use monotonic clock instead of gettimeofday #37

@baruch

Description

@baruch

The result of gettimeofday is the wall clock which can change backwards in some occassions (time drifted and ntp re-enabled). In that case timeouts may not expire for a while until the wall clock catches up.

It is better to use CLOCK_MONOTONIC with clock_gettime() to get a stable clock that never moves backwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions