Benchmark-Thread-Size
view release on metacpan or search on metacpan
lib/Benchmark/Thread/Size.pm view on Meta::CPAN
# Lose the class
# Initialize the parameters hash
# Initialize the number of times setting
# Initialize the oneliner flag
# Initialize the reference only flag
# Initialize the key list
shift;
my %param;
my $times = '';
my $oneliner = (join( ' ',caller() ) eq 'main - 0');
my $refonly = $oneliner;
my @key;
# While there are keys to be obtained
# If it is the times setting
# Set that
# Elseif we want the reference only
# Set reference only flag
# Else (key + code setting)
# Associate the code with this key
( run in 0.371 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )