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