long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000;
but if I change the system time in "//do something" , how to caculator the spentTime? the CPU running time? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

