登录后复制 /// <summary> /// 运行时间 /// </summary> [ProtoMember(46)]public long WorkTime; 1.2.3.4. 登录后复制 Stopwatch stopwatch = new Stopwatch(); // 记录运行时间 stopwatch.Start(); 。。。// 运行的代码stopwatch.Stop(); WorkTime = stopwatch.ElapsedMilliseconds; 1.2.3.4. 作者:꧁执笔小白꧂ 原创作者: u_16822845 转载于: https://blog.51cto.com/u_16822845/11642673