It's pretty simple, and gives a broad view of feature dev time. Whether using AI to code or not.
https://github.com/thisdougb/git-time-hooks
Edit: there's no perfect way, but a broad start/stop gate of creating then merging a branch gives a reasonable idea of time taken. Then you can use AI to trawl through high time-cost features and see if there's ugly implementation lurking.