added time output to log function