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

Reply via email to