Skip to main content
SunilRana_Gateway
Inspiring
August 17, 2012
Question

is it good to use Timer class in mobile Apps?

  • August 17, 2012
  • 1 reply
  • 1062 views

Hi

is it good to use Timer class in mobile Apps?. if not then what will good option to replace Timer

Thanks,

Sunil Rana

This topic has been closed for replies.

1 reply

Inspiring
August 17, 2012

Depends on what you are using them for. Timers in general are a good choise! But be aware, that Timers do not work precise.

Whats the usecase?

Mark.fromOP
Inspiring
August 19, 2012

I use them a lot, just be sure to shut them off when not in use to conserve memory.

Inspiring
August 20, 2012

Make sure to remove the event listeners on the timer as well.  If you do not, then the timer may not be correctly disposed.  This will cause all objects in your view and/or ui component to not release their memory, leading to a leak which could be very difficult to track down.