NAME
Plack::ServerTiming - Frontend for Plack::Middleware::ServerTiming
SYNOPSIS
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"]];
};
};
DESCRIPTION
This module provides high level API for Plack::Middleware::ServerTiming.
SEE ALSO
Plack::Middleware::ServerTiming
LICENSE
Copyright (C) Takumi Akiyama.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Takumi Akiyama <t.akiym@gmail.com>