I would like windows to show the time displayed for every command I run from a prompt. I don't care whether it's cmd.exe or powershell. Is this possible?

I have set up something similar on my linux and macos machines, and it's useful when I run a particularly slow command to show my teammates just how slow it is. (One hour for a commit? Here's proof!)

I've found the measure-command commandlet for powershell, but I'm not familiar enough with windows to know if there's some way to run it automatically on each command.