.NET 中的秒表
可以运行多长时间?如果达到该限制,它会返回负数还是从 0 重新开始?
最佳答案
Stopwatch.Elapsed
返回一个 TimeSpan
。来自 MSDN对于 TimeSpan
的 MaxValue
:
The value of this field is equivalent to Int64.MaxValue ticks. The string representation of this value is positive 10675199.02:48:05.4775807, or slightly more than 10,675,199 days.
关于c# - 秒表是否有运行的最长时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46794434/