[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