C#代码精确到毫秒时间戳写法时间:2023-03-09 09:57:24 TimeSpan ts = new TimeSpan(DateTime.Now.Ticks); ts.TotalMilliseconds;