美文网首页
delphi计算两个时间差别

delphi计算两个时间差别

作者: itrojan | 来源:发表于2016-09-24 10:01 被阅读142次

引入 DateUtils

starttime:=now();
stoptime := Now();
r1 := MilliSecondsBetween(stoptime, starttime); //取得计时时间,单位毫秒(ms)
StatusBar1.Panels.Items[2].Text := '本次查询耗时:' + inttostr(r1) + '毫秒';

相关文章

网友评论

      本文标题:delphi计算两个时间差别

      本文链接:https://www.haomeiwen.com/subject/stdxyttx.html