Skip to content

Instantly share code, notes, and snippets.

@ecin
Created August 21, 2009 18:34
Show Gist options
  • Save ecin/172287 to your computer and use it in GitHub Desktop.
Save ecin/172287 to your computer and use it in GitHub Desktop.
// Save the time a request comes in
rack*:::request_start
{
self->start = timestamp;
}
// Save the difference between the request's start and finish
rack*:::request_finish
{
@length[self->path] = quantize(timestamp - self->start);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment