Callback function support implemented
Calculation of elapsed ticks