Dtynin
Dtynin
DIIDevHeads IoT Integration Server
Created by Dtynin on 6/19/2024 in #middleware-and-os
what is the most accurate way in FreeRTOS to convert tick counts to milliseconds?
hey guys, I'm working on an embedded system running FreeRTOS on an ARM Cortex-M4 microcontroller clocked at 72MHz. I need to measure the execution time of a specific code block to optimize performance. The code snippet using
xTaskGetTickCount
xTaskGetTickCount
provides tick counts, but I need the time in milliseconds for better analysis. Considering the clock speed, what is the most accurate way in FreeRTOS to convert tick counts to milliseconds and achieve millisecond-level resolution for measuring code execution time? @Middleware & OS
4 replies