How read STM32 HRTIM master timer current counter value
The STM32 HRTIM (high resolution timer) provides a high speed counter that is suitable for benchmarks due to its high counting frequency of up to 240 MHz on the STM32H743.
You can read its current counter value using
uint32_t t0 = HRTIM1->sMasterRegs.MCNTR;
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow