How can I achieve to get the execution time of a C++ method in the Android framework?
Will the gettime of the day or getsystem time call be suitable?
I dont wan’t the timer to take the extra time by itself, I rather want the exact time taken by the method (may by inserting start and end time at the start and end of the method and then taking the difference).
Self Explanatory Code Snippet:
diff.tv_sec – gives you seconds and
diff.tv_usec – gives you microseconds
I would suggest this link: High Precision Timing … for reference.