Added function to print timestamp without newlines