如何获得系统的空闲时间 [英] how to get idle time of system..

查看:75
本文介绍了如何获得系统的空闲时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...
这是一个聊天应用程序....
我想获得系统空闲时间,以便在聊天中将用户状态设置为理想状态....
假设系统闲置2分钟,我想将已登录用户的状态更改为空闲".

所以任何人都可以帮助我解决这个问题....

在此先感谢
Vayanan

Hi all...
this is for an chat application....
i want to get system idle time for setting the user status to ideal in the chat....
supposs if the system is idle for 2 minutes, I want to change the status of the logged in user to Idle.

so can anyone help me to solve this problem....

Thanks in Advance
Vayanan

推荐答案

您好,

您可能想要^ ]

:)

Hi,

you probably want to read this.[^]

:)


u可以使用DateTime.Now获取当前日期和时间;在c#
u can get the current date and time using DateTime.Now; in c#


这篇关于如何获得系统的空闲时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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