Hi,
You could use _time_get_ticks() to get two timestamps (one for previous run and one for current run) and use _time_diff_milliseconds() to return the difference in mS, or _time_diff_microseconds() to get uS.
int ms;
boolean ms_overflow;
MQX_TICK_STRUCT ticks_last, ticks_cur;
_time_get_ticks(&ticks_last);
////
_time_get_ticks(&ticks_cur);
ms = _time_diff_milliseconds(&ticks_cur, &ticks_last, &ms_overflow);
For your 1mS task period, I remember that on MQX37 the system tick used for scheduling was set to 5mS by default (can be changed in BSP config), so a _time_delay(1); was sleeping for 5mS instead of 1mS. Take care of that with your task.