Print current time with log messages.