Hi,
Well all are included, version 0.01 is available on CPAN.
About the name of the sub, I always tend to read subs as verbs, so
name came naturally to me, but I see why it can be confusing.
jonasbn
On 08/03/2007, at 6.03, Ken Williams wrote:
On Mar 1, 2007, at 7:53 AM, Jonas B. Nielsen wrote:
Hello,
I have just finished a module I need at a gig with a client. The
module is called Test::Timer, it resembles, Test::Benchmark a lot,
apart from it is much simpler.
It exports a single method: time_ok
Which takes a body of code, a threshold and a name;
time_ok( sub { sleep(1); }, 5, 'Passing test' );
time_ok( sub { sleep(10); }, 5, 'Non-passing test' );
I had a similar reaction as Paul - I didn't know what "time_ok" was
supposed to do. I think time_atleast and time_atmost are clearer.
-Ken