Clarity regarding ulRunTimeCounter

Hi,
If you are using xTimerCreate API to create a software timer, you need the timer period in ticks as its parameter.

xTimer = xTimerCreate(
    "MyTimer",         /* Timer name (for debugging purposes) */
    pdMS_TO_TICKS(1000), /* Timer period in ticks (1000 ms) */
    pdTRUE,            /* Periodic timer (will auto-reload) */
    (void *)0,         /* Timer ID (optional) */
    TimerCallback      /* Timer callback function */
);

If your ulRunTimeCounter calculates the time in milliseconds, you will need to use the pdMS_TO_TICKS() macro for initializing the software timer.
It depends on the time unit of the ulRunTimeCounter.