Skip to content

[std.Io] Implement real-time timers #228

@lalinsky

Description

@lalinsky

Currently we only do monotonic timers. Real-time is problematic because the time can change at any point. For example, if it's 9AM and you want to sleep until 10AM, we can't just sleep for one hour, because in half an hour, user can change the clock and we need to wake up. Linux supports this natively, other systems do not. In epoll-shim they have a dedicated thread checking time every second, re-scheduling things if it changed, I want to avoid that.

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