in reply to One long liner to make it short

Wouldn't it be easier to just let the logger take the strain - use the Log::Log4perl::Layout::PatternLayout log layout configuration and then use either of the %r (mS since program start) or %R (mS since last log event) format specifiers in the appenders' config line ?

Again, just my 10 penn'orth...

A user level that continues to overstate my experience :-))