delphi 我开了一个线程(MyThread0),我怎么知道它运行了多少时间。谢谢了,大神帮忙啊

送的100分,来拿吧
2025-04-06 01:43:56
推荐回答(1个)
回答1:

在你的线程开始时取一个时间: Start:=gettickcount(); 线程结束时取一个时间 End:=gettickcount(); 线程所用的时间为 Floattostr( (end-start)/1000 )+'秒'其中start,end为integer 查看原帖>>