Y yzhshi Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-30 #2 The GetTickCount function retrieves the number of milliseconds that have elapsed since Windows was started. <br><br>DWORD GetTickCount(VOID)<br>
The GetTickCount function retrieves the number of milliseconds that have elapsed since Windows was started. <br><br>DWORD GetTickCount(VOID)<br>
Y yzhshi Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-30 #4 它直接就返回启动时间了。<br>这个函数常用于比较精确的定时中。
Y yzhshi Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-30 #6 这句话应该就可以<br> ShowMessage('系统已经运行了'+FloatToStr(GetTickCount / 1000)+'秒');
K Kingron Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-30 #8 忍不住要骂人了。<br>你只要分钟,你知道分钟怎么来的吗?不会自己对60进行除法啊!
K Kingron Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-31 #12 把秒数转换成hh:mm:ss格式<br>function SecondToTime(a:integer):string;<br>begin<br> result:=timetostr(a/86400);<br>end;<br><br>或者:<br>Format('%-.2d:%-.2d:%-.2d', [FTime div 3600, (FTime mod 3600) div 60,FTime mod 60]);<br>
把秒数转换成hh:mm:ss格式<br>function SecondToTime(a:integer):string;<br>begin<br> result:=timetostr(a/86400);<br>end;<br><br>或者:<br>Format('%-.2d:%-.2d:%-.2d', [FTime div 3600, (FTime mod 3600) div 60,FTime mod 60]);<br>