The equivalent of Arduino’s millis()
function when using the STM32 HAL is
HAL_GetTick()
The ticks occur once every millisecond, so this will also give you a millisecond timer that will overflow after some time equivalently to how millis()
overflows.