Getting the tick count outside a task

Is there a way through which I can get the tick count outside the tasks ? I’m aware of the function xTaskGetTickCount for getting the number of ticks inside a task.

Do you mean xTaskGetTickCountFromISR()?

Since the only thing that isn’t a task would be an ISR.

I meant that, if I want to calculate the number of tick counts inside the main() function, how could I do that ?

Before main starts the FreeRTOS scheduler, the tick isn’t running, so NO ticks happen.

Depending on the processor, you might be able to use some other counter in the system.

Generally, you shouldn’t have much time go by before bringing up FreeRTOS.