标签:mil system ast one sys date stc second 获取
转换: 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) {
}
C#:获取当前时间的总毫秒值(类似于Java中:System.currentTimeMillis() )
标签:mil system ast one sys date stc second 获取
原文地址:http://www.cnblogs.com/makebetter/p/7053567.html