Measuring time taken for individual parts

I’m building a snap that’s composed of 15 different parts. It takes a while to rebuild from scratch, and I’d like to dive into the parts that take the longest to build to see if there’s anything I can do to speed that up. I looked around and didn’t see any way to print out how long each part took to build, am I just missing it? If it’s not there, would it be possible to add that functionality?

You could pipe the output of snapcraft to ts to get basic time stamps of when snapcraft prints off that it starts building and when it finishes