Skip to content

sleep() is too unprecise #2764

Description

@toncho11

sleep() takes microseconds as argument, but it can be as unprecise as 20ms?

I have tried 1ms, so sleep(1000), but I get more. It seems a 10 ms timer quantum plus one extra 10 ms tick for every positive usleep() call.

Also gettimeofday() is a bit better, but also in the 10ms range of error.

So there is actually no way to have a 1-2 ms sleep on ELKS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefect in the product

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions