You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 stampsleep(1);// sleep for a second// Now we're at least 1 second after that updated time stamp
One 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.
The text was updated successfully, but these errors were encountered:
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:
One 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.
The text was updated successfully, but these errors were encountered: