Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] PC Uptime

From: ptretter::charter::net at: 1-Aug-2002 13:26

I have been playing more with /PRO. Gotta admit, it gives you quite a bit more power than /core and /view. Here is a little PC Uptime monitor for you /PRO users. Use at your own risk! REBOL [ Title: "PC Uptime Monitor" Author: "Paul Tretter" ] libfile: %kernel32.dll getcount: "GetTickCount" clib: load/library libfile uptime: make routine! ["Return Uptime" return: [long]] clib getcount print ["PC has been up for " uptime / 1000 / 60 " minutes"] Have fun! Paul Tretter