perl-Test-Time
Overrides the time() and sleep() core functions for testing
Test::Time can be used to test modules that deal with time. Once you 'use' this module, all references to 'time', 'localtime' and 'sleep' will be internalized. You can set custom time by passing time =>number after the 'use' statement: use Test::Time time =>1; my $now = time; # $now is equal to 1 sleep 300; # returns immediately, displaying a note my $then = time; # $then equals to 301
Artistic-1.0 OR GPL-1.0-or-latercloud_download Downloads
To download packages, you need to log in and have a valid subscription.
Please select a product to see the available package versions:
Loading...
Loading package downloads...