home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Graphics
/
Graphics.zip
/
uptime11.zip
/
uptime.doc
< prev
next >
Wrap
Text File
|
1999-05-01
|
2KB
|
73 lines
Uptime - a simple WPS class
===========================
Introduction
------------
The accompanying files implement a Workplace Shell class that shows the
current system uptime (time since boot). Although there are several
utilities that do this, it seemed nice to make it a WPS class; it is
easy to move the information around the desktop, make shadows, etc. It
would of course be rare to need more than one instance of this! Also,
this is dedicated to just one function, unlike (for example) PM Patrol.
This is version 1.1, which is really a late beta. Having said that,
there is little to go wrong, and little to configure. Feedback would be
appreciated.
Installation
------------
Unpack the ZIP file (if you are reading this, you've probably done that
already). Copy UPTIME.DLL to somewhere on the LIBPATH, and UPTIME.HLP
to somewhere on the HELP path (apart from '.', which isn't relevant
here).
Edit the REG.CMD file, and add the full path of the location of the
UPTIME.DLL file to the line currently containing just the UPTIME.DLL
name. This shouldn't be necessary, but in my experience it works
better!
Run the REG.CMD file to register the object class.
Now run the CREATE.CMD file to create an instance on the desktop.
Answer the questions. The refresh interval defines the frequency with
which the display is updated. This can always be changed by using the
Options page in the Properties notebook.
That's it!
Use
---
Simply double click on the object to open its Watch view. While open,
the object title text changes to show the system uptime. To close,
display the popup menu (right mouse button) and select the Close View
menu item.
Online help is also available via the Help item on the popup menu.
Uninstallation
--------------
Delete all objects of the 'uptime' class. Run the DEREG.CMD file.
reboot, and delete the UPTIME.DLL and UPTIME.HLP files.
Implementation
--------------
For those who are interested....
The system boot time is determined by using the IRQ0 high resolution
timer. Much of the code in UPTIME.DLL is used only when the view is
first opened, and it is separated from the 'running' code to allow the
subsequently-unused code to be paged out. The working set is thus very
small, and the impact on the system correspondingly small.
Feedback
--------
Feedback to: Bob Eager (rde@tavi.co.uk)