added compile flag for total iteration time