From 8fac2b08f248b7db54c6937c2ab154805aae63d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 15 Mar 2010 11:45:00 +0100 Subject: [PATCH] LXDebug->log_time routine --- SL/LXDebug.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 43ad76a99..e3778d44f 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -245,6 +245,12 @@ sub end_request { $self->{calldepth} = 0; } +sub log_time { + my $self = shift; + return 1 unless want_request_timer(); + $self->_write("time", $self->get_request_time); +} + sub get_request_time { my $self = shift; return $self->want_request_timer && $self->{request_start} ? tv_interval($self->{request_start}) : undef; -- 2.20.1