如何计算总时间上的应用程序的用户消费? [英] How to calculate the total time a user spending on an application?

查看:133
本文介绍了如何计算总时间上的应用程序的用户消费?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建一个能够计算的总时间,用户的应用程序(也就是我)用在特定的应用程序,例如Firefox浏览器。而这个应用程序应该显示警告信息,如果用户花了很多时间在Firefox(例如1小时以上)

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 display warning message if the user spent a lot of time on Firefox (for example 1 hour or more)

原因:我是一名VB.NET开发人员。在我的工作时间内,我的主要工具是Visual Studio和我该做的编码。但我需要的Firefox偶尔会访问互联网(尤其是SO和其他网站)找到我的编程问题的解决方案。问题是,我沉迷于SO和 SO吮吸我的时间了几个小时,直到我已经忘记了,我想继续编码,而不是浏览SO网站。

Reason: I'm a VB.NET developer. During my working hours, my main tool is Visual Studio and I suppose to do coding. But I need Firefox occasionally to access internet (particularly SO and other sites) to find solutions for my programming problems. The problem is I addicted to SO and SO sucks my time for hours until I have forgotten that I suppose to continue coding and not browsing the SO site.

我的提问:如何计算的总时间,用户的消费在一个开放的应用程序,例如Firefox

My question: How to calculate the total time a user spending on an open application like Firefox?

更新:

我需要的,如果我留太长的Firefox播放一首歌曲作为警告消息自己。我的目的是创建一个winform或Windows服务来实现这一目标。

I need to play a song as warning message to myself if I stay too long on Firefox. My intent is to create a winform or windows service to achieve this

推荐答案

这是不是一个规划问题。这是一门学科的问题。我的建议:

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

  1. 首先,不依赖于应用程序来告诉你该怎么做。
  2. 其次,应用程序可以向您发出警告,但最终你可以禁用它,把它关掉。
  3. 第三,我的建议,你的真实,即无纪律差的职业道德问题,是把一个小横幅在显示器面前这个文本专注于工作或code现在或者 SO是邪恶

这篇关于如何计算总时间上的应用程序的用户消费?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆