15 my $sleep_says = sleep 3;
16 my $diff = time - $start;
18 cmp_ok( $sleep_says, '>=', 2, 'Sleep says it slept at least 2 seconds' );
19 cmp_ok( $sleep_says, '<=', 10, '... and no more than 10' );
21 cmp_ok( $diff, '>=', 2, 'Actual time diff is at least 2 seconds' );
22 cmp_ok( $diff, '<=', 10, '... and no more than 10' );