print_time as method