处理事情:

        数据处理过程中,速度很慢,无法准确定位分析是DB问题还是客户端处理问题,所以增加计时统计日志;


       Delphi计时首次使用,查阅资料,予以记录:

var  
 BgPoint, EdPoind: int64;  
 OffSet: int64;  
begin  
  BgPoint := GetTickCount;  
  //>> 逻辑处理语句。。。。。。  
 EdPoind := GetTickCount;  
  OffSet := EdPoind - BgPoint; //耗时(ms)  
end;  
//>>注:GetTickCount函数返回从操作系统启动所经过的毫秒数,它的返回值是DWORD。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-10-23
  • 2021-10-29
猜你喜欢
  • 2022-12-23
  • 2021-06-20
  • 2022-01-11
  • 2022-12-23
  • 2023-03-21
  • 2023-03-16
  • 2021-07-21
相关资源
相似解决方案