简体   繁体   中英

Accuracy comparison between Environment.TickCount and DateTime.Now

I saw a similar question being asked somewhere in this site, but it did not quite answer my question. As mentioned in the question, what is the most accurate method to get the current time? or are these methods the same when it comes to accuracy? also, i am not going to run my system for days, so there's no worry of Tickcount getting re-set. Also I cannot use StopWatch class functionality in my code, due to the way it is designed. So I just want to know form the above two methods, which one is more accurate.

/Surangika

根据文档,Environment.TickCount和DateTime.Now均基于系统计时器,因此它们应同样准确。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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