dictu-lang / Dictu

Dictu is a high-level dynamically typed, multi-paradigm, interpreted programming language.
https://dictu-lang.com
MIT License
268 stars 53 forks source link

[FEATURE] Finer Granularity with System.sleep #721

Closed briandowns closed 8 months ago

briandowns commented 8 months ago

Is there an existing issue for this?

Is your feature request related to a problem?

I'd like the ability to access usleep or have millisecond stops available. I wanted to get your (@Jason2605) feedback on how you'd think that'd be best implemented. I looked at the code for sleep and I can change it but I'm a bit hesitant to break the API. I was considering adding another function called usleep that functions exactly the same as the underlying implementation.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

briandowns commented 8 months ago

Oooorrrrrr.... I can pass in the value of 1 divided by some value. Nevermind. Enjoy your holiday. :D

Jason2605 commented 8 months ago

Yeah the sleep should allow for values < 1 and in decimal formats. You too mate, have a nice Christmas and new year!!