Well, you could grab the System.nanoTime() value at the start of the block, again at the end, and subtract...
On Apr 24, 9:43 am, mcmc <manni...@gmail.com> wrote: > Hi, I'm trying to put a timer in my code to determine the amount of > time it takes to execute a block of code. > > I've tried googling up some ideas, but they are all related to > scheduling tasks, which is not what I want. > > I want to, perhaps, place a time stamp in different parts of my code. > How can I do this? > > Any help is greatly appreciated. :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---