while (1) { get_data_taking_exactly_55_seconds; sleep(5); write_log_file; }