Duration of a function

Hi,

I’m trying to figure out how long the system takes to complete a function. Are there blueprint nodes available to start and stop a timespan to log to the console? If not, is there a way to do this in C++?

Thanks!

You could use GetRealTimeInSeconds.

It goes right down to the millisecond, you could use it to measure elapsed time.

I don’t know if there’s a way to isolate the actual CPU time used by a function.