I am trying to calculate the time ticks, however tx_time_get() always returns 0 wherever I put it in modules or module manager of ThreadX E.G:
ULONG start_time, current_time=0, cycle_time=0;
start_time= tx_time_get();
current_time=tx_time_get();
cycle_time= current_time-start_time;