I have a small MIDP application.I would like to find out the time taken to execute this program on Sony Palm PDA ,CLIE. Could anyone please share your thoughts on this matter.
I have a class called GmBlock_NoFlicker that extends midlet class.This class contains the methds like startApp(),Destroy app().. MY second cllass is GameCanvas.This class is an extends class canvasThis contains methods like paint().
I like to know how to compute the total time. I found that System.currentTimeMillis() may be used. But i dont know how it can be use Any suggestions?
When your application starts (e.g. in startApp()), store somewhere the start time using System.currentTimeMillis(). Then, when your application is ending (e.g. in destroyApp()) get the stop value of the time using System.currentTimeMillis() again. Then, subtract the stop value and the start value and you get the duration of your app.