Rand Stats

The uploading author of github:FCO does not match the META author of zef:FCO.

Test::Time

github:FCO

test

Test::Time

Use Test::Scheduler to use on your tests, not only Promises, but sleep, now and time.

my $started = now;
my $*SCHEDULER = mock-time :auto-advance;

sleep 10;
say "did it passed { now - $started } seconds?";
unmock-time;

say "No, only passed { now - $started } seconds!";

#`{{{
Output:
    did it passed 10.0016178 seconds?
    No, only passed 0.020109835 seconds!
}}}

Or you can use $*SCHEDULER.advance-by: 10 as you would when using Test::Scheduler