And I think it has already been done. Don't Time::Mock and Time::MockTime do something similar?
In reply to Re: Artificial System Clock by JavaFan in thread Artificial System Clock by JohnBoy