Moxy::Plugin::ResponseTime - Moxy::Plugin::ResponseTime documentation


Moxy documentation Contained in the Moxy distribution.

Index


Code Index:

NAME

Top

Moxy::Plugin::RseponseTime

SYNOPSIS

Top

  - module: ResponseTime

DESCRIPTION

Top

show response time

AUTHOR

Top

Tokuhiro Matsuno


Moxy documentation Contained in the Moxy distribution.

package Moxy::Plugin::ResponseTime;
use strict;
use warnings;
use base qw/Moxy::Plugin/;

sub control_panel :Hook {
    my ($self, $context, $args) = @_;

    return $self->render_template(
        $context,
        'panel.tt' => {
            response_time => $context->response_time,
        }
    );
}

1;
__END__