TimeSpan ts = new TimeSpan(DateTime.Now.Ticks); ts.TotalMilliseconds; 转载于:https://www.cnblogs.com/wohexiaocai/p/6094064.html