Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 613 Bytes

sample_066.md

File metadata and controls

25 lines (18 loc) · 613 Bytes

主页

检索系统启动后的已过时间

翻译:xinjie 2021.01.11

代码:

DECLARE INTEGER GetTickCount IN kernel32.dll
	lnSeconds = GetTickCount() / 1000

	lnHours = INT (lnSeconds/3600)
	lnSeconds = lnSeconds - lnHours * 3600
	
	lnMinutes = INT (lnSeconds/60)
	lnSeconds = lnSeconds - lnMinutes * 60
	
	? "重启以来的时间: "
	?? STRTRAN (STR(lnHours,2) + ":" + STR(lnMinutes,2) + ":";
		+ STR(lnSeconds,2), " ","0")  

函数列表:

GetTickCount