插件中记录代码执行时间
金蝶云社区-YYZZ
YYZZ
0人赞赏了该文章 736次浏览 未经作者许可,禁止转载编辑于2016年08月27日 09:28:13

Stopwatch watch = Stopwatch.StartNew();
AppServiceContext.DBService.ExecuteBatchWithTime(base.Context, sqlArray, CST_CommandTimeout);
Logger.Info("MRP总耗时", "张单据转换耗时:" + watch.Elapsed.ToString());
Logger.Info("MRP耗时毫秒", "张单据转换耗时:" + watch.ElapsedMilliseconds.ToString());

日志输出路径:website\app_data_log