I need to read timestamps using C or Assembly code on Android NDK, but it is important to do that with very low overhead. I'm trying to do some code instrumentation that will add code snippets at beggining of every function in Android native code to measure functions execution times (kind of profiler).
Is it any more efficient way than gettimeofday() ? I already tried reading Time Stamp Counter to convert results to clock time but it doesn't work for me ex.1 ex.2