From 278523a45d785ee37a915067b73ffe098b5df88d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 16 Jun 2014 09:42:11 +0200 Subject: [PATCH] =?utf8?q?LXDebug:=20Zeitstempel=20mit=20Millisekunden-Auf?= =?utf8?q?l=C3=B6sung=20ausgeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/LXDebug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 80b41f95a..016015f52 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -260,7 +260,8 @@ sub is_tracing_enabled { sub _write { no warnings; my ($self, $prefix, $message) = @_; - my $date = strftime("%Y-%m-%d %H:%M:%S $$ [" . getppid() . "] ${prefix}: ", localtime(time())); + my @now = gettimeofday(); + my $date = strftime("%Y-%m-%d %H:%M:%S." . sprintf('%03d', int($now[1] / 1000)) . " $$ [" . getppid() . "] ${prefix}: ", localtime($now[0])); local *FILE; chomp($message); -- 2.20.1