I have been thinking on timing my app, so I can know when an event happen. My first idea was to access to the system clock when I start the application and once again everytime I want to check the elapse time (then just substract). Don’t know if this is the most accurate and optimal way. Any suggestion?
Thank you very much!!
If millisecond resolution is enough, I’d use
System.currentTimeMillis(). It’s great for running quick performance checks.