Part eight of a series of posts about automated
testing.
How does Santa deliver presents to all the millions of children on
Christmas Eve? Simple, just stop time! But how do we test that?
Here’s one way to do it in Perl:
By messing with the clock, we can quickly test all sorts of
time-dependent code, without having to call sleep() and slowing down
the tests.
Further reading