Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,10 @@
|
||||
module os
|
||||
|
||||
// sleep_ms suspends the execution for a given duration (in milliseconds), without having to `import time` for a single time.sleep/1 call.
|
||||
fn sleep_ms(dur i64) {
|
||||
#let now = new Date().getTime()
|
||||
#let toWait = BigInt(dur)
|
||||
#while (new Date().getTime() < now + Number(toWait)) {}
|
||||
|
||||
_ = dur // unused
|
||||
}
|
||||
Reference in new issue
Block a user