use free_t for total_time for the moment