update struct of printResult and compute run time