[PATCH 4/5] Slave: add get_remaining_time method