在Windows应用程序中维护24小时 [英] Maintian 24 hr period in Windows Application

查看:58
本文介绍了在Windows应用程序中维护24小时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在我的申请中维持24小时。此24小时周期与系统日期时间无关。应用程序有自己的时间段,如24小时期间完成会话更改。

我应该在我的应用程序中使用计时器吗?



如果您有任何建议请告诉我。

Hi All,
I want to maintain 24hr period in my Application. This 24 hr period is independent of system datetime. Application has its own time period like session changes when 24hr period completes.
Should i use timer in my application?

If you have any suggestions please let me know.

推荐答案

秒表 [ ^ ]类应提供独立于系统时间的度量。但它有其警告。例如,请参见此处 [ ^ ]。
The Stopwatch[^] class should provide measures independent by the system time. However it has its caveats. See, for instance here[^].


这篇关于在Windows应用程序中维护24小时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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