Timing a full function call from an arbitrary function object.