in reply to Timing a Module Load

The previous responders hit the nail on the head, just in case if you're interested in timing the use: You need to put the starting timer code into a BEGIN block before the use call:
BEGIN{ $t0 = [gettimeofday]; } use my_module; $elapsed = tv_interval( $t0, [gettimeofday] );

Replies are listed 'Best First'.
Re^2: Timing a Module Load
by suaveant (Parson) on Apr 29, 2005 at 20:40 UTC
    Not exactly correct... ALL the code has to be in the begin, otherwise other things may happen (uses, other begin blocks) before the tv_interval runs.

                    - Ant
                    - Some of my best work - (1 2 3)