Can you paste your captured waveform here?
problem have been resolved. software found that using wco and ilo in same counter, their time period different much. hardware check its circurt and fix it.
now the ticks calculated match with the waveform.
The ILO timer is very inaccurate I believe, but good that you got it working for your case.