I would like to see how long it takes for a certain method to execute in my android app. My first idea was to do something like this:
Date date1 = new Date();
doStuff();
Date date2 = new Date();
//compare date difference in ms
But for starters, date objects doesnt seem to have a .getMilliseconds()
, and thats what im after. Is there any easier and / or better way to solve this?
Thanks