I might be going the wrong direction of "micro" here but time is the very minimal, tiny, and traditional unix way.
For example:
$ time curl https://lemmy.ca/post/61453347 > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 175k 0 175k 0 0 525k 0 --:--:-- --:--:-- --:--:-- 526k
real 0m0.343s
user 0m0.030s
sys 0m0.016s
There are also a large number of other profiling outputs you can ask time to spit out by passing it the appropriate command line flags.