var 
    aNow,aThen,aTime:Longint;
begin
    aThen := GetTickCount();
    Sleep(1000);//代码段
    aNow := GetTickCount();
    aTime := aNow-aThen;
    ShowMessage(IntToStr(a));
end;

 

posted on 2014-05-29 00:21  曼波  阅读(1333)  评论(0编辑  收藏  举报