Fix a problem with tic input parameters in c version.