Time `ipfs get` precisely

Is there a better way to time how long it takes ipfs to retrieve a file than time ipfs get QmHash? I’m trying to compare it to curl in a variety of peer arrangements, and I know curl has a way to time exactly the duration of the download, without any of the overhead of invoking curl, etc.