classify parameters into time* spec*,change fitInf to pointer ,create calTime()