what is the best way to measure processed time of functions specific scope?

On my shortly research, I figured out DateTime c++ library but if UE4 engine supported similar measuring time to processed functions, It should be the best solution for this.
Any suggestion will be thankful.

You would want to use built in profiling macros and tools: UE4 Wiki

Thank you. “FDateTime” is what i am looking for! Have a nice day.