How can I get a process starting and ending time in android -
i want starting , ending time of process in android. tried use process command ps in android doesn't provide process time. in linux os can process starting time command doesn't work android. can me.
if desire find time taken process can use that:
long starttime = system.nanotime(); // here write code long endtime = system.nanotime(); system.out.println("took "+(endtime - starttime) + " ns"); if want time in ms : (endtime - starttime)/0.000001
Comments
Post a Comment