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' );

If the body of code does not finish within the specified threshold the test fails.

The module is primarily syntactic sugar, mmm sugar, but it scratches my itch, since we have a lot of back-end API's, which do not respond within the thresholds of our web framework.

So my question is: is this module already on CPAN, or something similar (better), or should I put mine there?

I have several things which I need to improve and investigate, especially for the body of code part and the code is alpha, but in the spirit of open-source I think it would be a good idea to share it - the alternative is a life under corporate revision control in darkness and seclusion.

Looking forward to hearing from you guys,

jonasbn aka. [EMAIL PROTECTED]

Reply via email to