Here is a short piece of code I wrote to get the current system up time I hope it helps someone out there.
;-------------------------------------
;A simple procedure that will return the current system uptime
Procedure.s uptime()
uptime.f = GetTickCount_() ;gets the system uptime in miliseconds
;determine hours
upth.f = uptime/3600000
;determine minutes
rmnd.f = upth - Round(upth,0)
uptm.f = rmnd*60
;determine seconds
rmnd = uptm - Round(uptm,0)
upts.f = rmnd*60
;determine miliseconds
rmnd = upts - Round(upts,0)
uptms.f = rmnd*1000
;Format the string to H:M:S.MS
sysuptime.s = Str(upth) + ":" + Str(uptm) + ":" + Str(upts) + "." + Str(uptms)
ProcedureReturn sysuptime
EndProcedure
MessageRequester("System Up Time", uptime(),0)
;------------------------------------
It's simple, it's short and best of all.... it works!
Boop64


