So, in my application, it's like ,
- A task is to performed within a given time interval
- If the task is performed within the timer's time limit , then i want to add say t seconds to the timer
- Then again i want to perform step 2.
- If the task is not performed within the timer's time limit , then the application will say, something like "Sorry, time's up".
How to do it? Please help me with required APIs and how to use them.