Skip to content

msleep should divide input into seconds and nanoseconds for bigger accepted input range #52

Description

@RobertBendun

Code to improve:

stacky/std/time.stacky

Lines 22 to 26 in cb31882

msleep fun # miliseconds --
timespec timespec.tv_sec + 0 store64
timespec timespec.tv_nsec + swap 1000000 * store64
while timespec timespec SYS_nanosleep syscall2 0 < do end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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