How to calculate the total time a user spending on an application?

后端 未结 6 1041
Happy的楠姐
Happy的楠姐 2021-02-07 08:16

I want to create an application that able to calculate the total time the user (i.e. myself) spent on a particular application, for example Firefox. And this application should

6条回答
  •  离开以前
    2021-02-07 08:50

    This is not a programming problem. This is a discipline problem. My advises:

    1. First of all, don't rely on application to tell you what to do.
    2. Secondly, the application can warn you but ultimately you can disable it, turn it off.
    3. Thirdly, my suggestion to your real problem i.e. no discipline and poor work ethic is to put up a small banner in front of your monitor with this text "Focus on your work" or "Code it now" or "SO is evil"

提交回复
热议问题