A timer is created and started in mita using the "every x milliseconds" keyword. The Mita code generator will take over the part of creating and starting the timer. In C, the software timer is managed by the FreeRTOS API and services (FreeRTOS - Open Source software for microcontrollers - FreeRTOS xTimerCreate() API function descript...) .
A timer needs to be created using xTimerCreate() and needs a timer function in which is invoked on every execution of the timer function as it de-scheduled by the RTOS timer service.
Thankyou Francisco, this helps a lot. I just wanted to clarify, this use of xTimerCreate is in a 'C Project', not a 'Mita project', as the Mita project does not use RTOS.
using APIs like xTimerCreate() is in the C project directly.
In a Mita project, Mita will manage the RTOS runtime by itself.