[Solved] What affects the time for a function to return to the caller. [closed]


The time returning from a function should be negligible.

Most processors have the instruction for returning from a function optimized, usually one instruction.

If you are returning an object via copy, the return time depends on the time required to copy the object.

Essentially, a return from function involves obtaining the return address, then setting the program counter to that address. Not much time spent in returning.

solved What affects the time for a function to return to the caller. [closed]