Name
timethese
Synopsis
timethese (count
, \%codehashref
[,style
])
Times each of several pieces of code and reports the results separately. Always exported. Takes the following arguments:
count
The number of times to run the loop.
- \%
codehashref
Reference to a hash in which the keys are names and the values are either strings or code references; each key/value pair specifies a piece of code to run.
style
Determines the format of the output. See
timestr
for the possible values ofstyle
.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.