![](/img/trans.png)
[英]Is there an .Net API to detect status changes of a windows service without polling?
[英]Clock on Windows Form without polling?
我需要在表單上以秒為單位顯示當前時間。 我的時鍾必須顯示秒,並且對性能感到恐懼。
Date().getTime()
來獲取計時器滴答事件中的當前時間嗎? 您應該只使用System.Windows.Forms.Timer
並在每個刻度中顯示DateTime.Now
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.