Skip to content

Instantly share code, notes, and snippets.

@karupanerura
Last active March 7, 2018 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karupanerura/7ebe3d5881582d121a82a85b192440c5 to your computer and use it in GitHub Desktop.
Save karupanerura/7ebe3d5881582d121a82a85b192440c5 to your computer and use it in GitHub Desktop.
idea Scope::Timer
use Plack::ServerTiming;
use Scope::Timer; # it's not exist in the world yet :p
my $duration_time = timer {
...
};
Plack::ServerTiming->new($env)->record_timing('foo' => {dur => $duration_time});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment