I want to evaluate how much time a function in an OpenCV program takes to run and how much time a similar function implemented in c++ will take? Which library and which start time and end time functions that i can use, in which both the library and the time functions are compatible with both OpenCV programs and c++ programs.