Plack::ServerTiming - Frontend for Plack::Middleware::ServerTiming
use Plack::ServerTiming; builder { enable 'ServerTiming'; sub { my $env = shift; my $t = Plack::ServerTiming->new($env); sleep 1; $t->record_timing('miss'); $t->record_timing(sleep => {dur => 1000, desc => 'Sleep one second...'}); [200, ['Content-Type','text/html'], ["OK"]]; }; };
This module provides high level API for Plack::Middleware::ServerTiming.
Plack::Middleware::ServerTiming
Copyright (C) Takumi Akiyama.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Takumi Akiyama <t.akiym@gmail.com>
To install Plack::Middleware::ServerTiming, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::ServerTiming
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::ServerTiming
For more information on module installation, please visit the detailed CPAN module installation guide.