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

[REBOL] Re: PC Uptime

From: greggirwin:mindspring at: 1-Aug-2002 13:00

Good one Paul! Often times, I'll use a routine name that emulates the API call and then wrap functions around them that translate values to more rebol friendly datatypes and values. E.g. lib: load/library %kernel32.dll get-tick-count: make routine! [return: [integer!]] lib "GetTickCount" up-time: does [to time! divide get-tick-count 1000] print up-time --Gregg