I am trying to make a shell script to run on Android. I need to measure time at more precision than seconds - milliseconds or nanoseconds. How can I do it in Android Shell?
The date +%N
does not give time in nanoseconds - it just gives N
as output. I cannot find any other command/way to do it.
In Android API we can get it easily, so there must be a way to do it through shell too.