The J2ME illustrates a method for generating the performance parameter of the mobile application. The stopTimer() method is called from destroyApp(). It cancels the TimerTask and the Timer by calling the Timer's cancel() method. Thus whenever destroyApp() is called time is returned.

 // Stops the timer
private void stopTimer( ) {
    if (timer != null) {
        System.out.println("Stopping the timer");
        timer.cancel( );