When benchmarking a function, what is measured?

waiting includes , driver function waiting for a message from another process through receive?