Closed jonasbn closed 5 years ago
This prototype demonstrates:
#!/usr/bin/env perl
use strict;
use warnings;
use Benchmark;
my $t0 = Benchmark->new;
sleep(1);
my $t1 = Benchmark->new;
print timediff($t1, $t0)->real;
print "\n";
exit 0;
Output as a single integer
Now only a release remains
Issue Template
Description
According to the documentation for Benchmark, the
timestr
method can be given a format parameter, this can be used to avoid using a regular expression.