Moved TimeUnit conversion out from LogEvent