您现在的位置:首页 >> 基础算法 >> window基础 >> 内容

Delphi编写高精度计时器TStopWatch组件

时间:2011/9/3 15:30:54 点击:

  核心提示:示例代码:varsw : TStopWatch;elapsedMiliseconds : cardinal;beginsw := TStopWatch.Create() ;trysw.Start;//...
示例代码:

var
  sw : TStopWatch;
  elapsedMiliseconds : cardinal;
begin
  sw := TStopWatch.Create() ;
  try
    sw.Start;
    //TimeOutThisFunction()
    sw.Stop;

    elapsedMiliseconds := sw.ElapsedMiliseconds;
  finally
    sw.Free;
  end;
end;



迅雷专用高速下载

作者:网络 来源:转载
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
  • 盒子文章(www.2ccc.com) © 2024 版权所有 All Rights Reserved.
  • 沪ICP备05001939号