Commit 2c4a6aee authored by 潘栩锋's avatar 潘栩锋 🚴

修改 FlyAD7的 now 第一次获取 毫秒取整

parent d25e5cbf
......@@ -1862,6 +1862,10 @@ namespace FlyADBase
if (dt_1st == DateTime.MinValue)
{
dt_1st = DateTime.Now;
//毫秒级别取整
long tick = dt_1st.Ticks % TimeSpan.TicksPerMillisecond;
dt_1st -= TimeSpan.FromTicks(tick);
systick_1st = systick;
return dt_1st;
}
......@@ -1873,6 +1877,10 @@ namespace FlyADBase
//被复位了
BeReseted?.Invoke();
dt_1st = DateTime.Now;
//毫秒级别取整
long tick = dt_1st.Ticks % TimeSpan.TicksPerMillisecond;
dt_1st -= TimeSpan.FromTicks(tick);
systick_1st = systick;
return dt_1st;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment