简体   繁体   English

使用 python 查找我的应用程序的使用时间

[英]Find the time usage of my app using python

I have made a python code that runs an application.我制作了一个运行应用程序的 python 代码。 I need to monitor when the app is opened and running, so that, I will make a graph of usage of my app..!我需要监控应用程序何时打开和运行,以便制作我的应用程序的使用情况图表..! Please tell me if you know how.. It's great if I got the piece code directly THANK YOU!!!如果你知道怎么做,请告诉我。如果我能直接得到代码,那就太好了。谢谢!

You can see how to use the python logging feature here您可以 在此处查看如何使用 python 日志记录功能

It has very simple examples that you can use to implement the file based logging that you are looking for.它有非常简单的示例,您可以使用这些示例来实现您正在寻找的基于文件的日志记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM