转换: 1 second(s)=1000 millisecond(ms)=10 x 100 0000 one ten-millionth of a second (Ticks)
DateTime.Now.Ticks / 10000 即为当前时间的总毫秒值
1 秒间隔的判断
if (DateTime.Now.Ticks / 10000 - _lastCmdTime_ms >= 1000) {
}
时间: 2025-01-18 15:42:49
转换: 1 second(s)=1000 millisecond(ms)=10 x 100 0000 one ten-millionth of a second (Ticks)
DateTime.Now.Ticks / 10000 即为当前时间的总毫秒值
1 秒间隔的判断
if (DateTime.Now.Ticks / 10000 - _lastCmdTime_ms >= 1000) {
}