Hey DOC,
Have you had a look at the ResKit tool UPTIME?
quote:

C:\Program Files\Resource Pro Kit>uptime
\\999-51-566 has been up for: 0 day(s), 0 hour(s), 23 minute(s), 13 second(s)

I know, it's external, but you don't need to calculate from current time and with the output, and it's all on one line so it's easy to parse.

Sample code:

code:

Break ON

shell '%comspec% /c "C:\Program Files\Resource Pro Kit\uptime.exe" >C:\uptime.txt'

IF Open(1,"C:\uptime.txt") = 0
$x = ReadLine(1)
? "$$X = " + $x
ENDIF

Close(1)

? $uptime

Get $


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.