start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: timediff Chapter 8
Standard Modules
Next: Reference: timestr
 

timeit

timeit (

count

, 

code

)

Runs code and reports the time it took. Always exported. Takes the following arguments:

count

The number of times to run the loop

code

The code to run, specified as either a code reference or a string


Previous: Reference: timediff Perl in a Nutshell Next: Reference: timestr
Reference: timediff Book Index Reference: timestr

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.