home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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.