摘要: https://github.com/aelassas/Wexflow/wiki 原C#的定时器时间越长,误差越大。 在主动请求设备数据的使用,使用C#的几种自带定时器导致每天都会丢失几条数据。 经测试使用自定义的定时器可完全解决此问题。 使用方法: MillisecondTimer _sysTim 阅读全文
posted @ 2019-01-24 17:07 willamyao 阅读(1743) 评论(2) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using ThreadState = System.Threading.ThreadState; ... 阅读全文
posted @ 2019-01-24 17:04 willamyao 阅读(259) 评论(0) 推荐(0)