Subject: | Time::Fake and Time::HiRes |
The Time::Fake documentation tells that the module is not tested with
Time::HiRes. I did it, and it does not work as expected. The script
#!perl
use Time::HiRes qw(time);
use Time::Fake;
warn time;
Time::Fake->offset("+1y");
warn time;
__END__
would not warp the time forward.
It seems to me that supporting Time::HiRes shouldn't be too hard, but
probably the user needs first to "use" Time::HiRes before Time::Fake, so
Time::Fake has a change to override Time::HiRes::time.
Regards,
Slaven