Fixed print_time bug.