I
I
ingwar4ik2015-07-02 20:54:20
JavaScript
ingwar4ik, 2015-07-02 20:54:20

How to implement time tracker correctly?

How to correctly implement the time tracker so that the user can run ("Start") and if he exits the application or closes it, then you need to pause when you open it again - continue from the point that was the last time.
When you click "Stop" write to the database with the result of the elapsed time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
4
4ikist, 2015-07-02
@4ikist

There is a method that checks if the tab is active

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question