delphi 时间耗时统计  
官方Delphi 学习QQ群: 682628230(三千人)
频道

delphi 时间耗时统计


处理事情:
 数据处理过程中,速度很慢,无法准确定位分析是DB问题还是客户端处理问题,所以增加计时统计日志;
 Delphi计时首次使用,查阅资料,予以记录:
var
 BgPoint, EdPoind: int64;
 OffSet: int64;
begin
  BgPoint := GetTickCount;
  //>> 逻辑处理语句。。。。。。
 EdPoind := GetTickCount;
  OffSet := EdPoind - BgPoint; //耗时(ms)
end;
//>>注:GetTickCount函数返回从操作系统启动所经过的毫秒数,它的返回值是DWORD。
————————————————

原文链接:https://blog.csdn.net/zhengzhiyujl/article/details/40142885

推荐分享
图文皆来源于网络,内容仅做公益性分享,版权归原作者所有,如有侵权请告知删除!
 

Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号

执行时间: 0.03345799446106 seconds