Prusa MINI Firmware overview
xTaskGetTickCount

task. h

TickType_t xTaskGetTickCount( void );
Returns
The count of ticks since vTaskStartScheduler was called.