-
Notifications
You must be signed in to change notification settings - Fork 744
[ Feature idea ] synchronous sleep command #441
Copy link
Copy link
Closed
Labels
Description
I'm sure something like this has been implemented before (and I can think of a few simple ways to implement it off the top of my head), but I think it would be beneficial for us to implement a synchronous sleep() command that works similarly to unix sleep.
Usage would be as follows:
cd('mydir');
touch('file.txt'); // update the time stamp
sleep(1); // sleep for a second
// Now we're at least 1 second after that updated time stampOne practical use case I can imagine would be for this line in our test script, since we want to verify that time stamps are actually changed before and after the sleeping.
Reactions are currently unavailable