Last active
March 7, 2018 07:02
-
-
Save karupanerura/7ebe3d5881582d121a82a85b192440c5 to your computer and use it in GitHub Desktop.
idea Scope::Timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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