On Thu, 9 Aug 2001, Yacketta, Ronald wrote:

> I have been reading up on the Benchmark.pm, I thought it was possible to
> time
> a sub routine with timeit as such
>
> $gt = timeit( 1 , &some_sub );

I think you mean

$gt = timeit( 1, \&some_sub);

You need a coderef there, an anonymous sub or a string to eval.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I didn't believe in reincarnation in any of my other lives.  I don't see why
I should have to believe in it in this one.
                -- Strange de Jim


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • timeit() Yacketta, Ronald
    • Brett W. McCoy

Reply via email to