The `sleep()` function pauses program execution for the given amount of milliseconds. Returns `true` if the program slept. Returns `false` when the given time value was not convertible to an integer, negative or zero. -- Testcase -- {% let t1 = time(); sleep(1000); let t2 = time(); if (t2 > t1) printf("Slept for at least one second.\n"); else printf("Unexpected time delta: %d\n", t2 - t1); %} -- End -- -- Expect stdout -- Slept for at least one second. -- End -- Passing an invalid value yields `false`. -- Testcase -- {% printf("%.J\n", [ sleep("inval"), sleep([]), sleep(-1), sleep(0) ]); %} -- End -- -- Expect stdout -- [ false, false, false, false ] -- End --