Skip to content

[ Feature idea ] synchronous sleep command #441

@nfischer

Description

@nfischer

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions