blib/lib/Template/Plugin/Timer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 17 | 70.5 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 4 | 5 | 80.0 |
pod | 1 | 1 | 100.0 |
total | 17 | 25 | 68.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Template::Plugin::Timer; | ||||||
2 | 1 | 1 | 6 | use strict; | |||
1 | 2 | ||||||
1 | 45 | ||||||
3 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 38 | ||||||
4 | 1 | 1 | 979 | use Benchmark::Timer; | |||
1 | 9220 | ||||||
1 | 36 | ||||||
5 | 1 | 1 | 11 | use base qw(Template::Plugin); | |||
1 | 3 | ||||||
1 | 1142 | ||||||
6 | |||||||
7 | our $VERSION = '0.02'; | ||||||
8 | |||||||
9 | sub new { | ||||||
10 | 0 | 0 | 1 | my $class = shift; | |||
11 | 0 | my $context = shift; | |||||
12 | 0 | 0 | my %args = ref($_[0]) eq 'HASH' ? %{$_[0]} : (); | ||||
0 | |||||||
13 | 0 | Benchmark::Timer->new(%args); | |||||
14 | } | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |