home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / uptime11.zip / uptime.doc < prev    next >
Text File  |  1999-05-01  |  2KB  |  73 lines

  1. Uptime - a simple WPS class
  2. ===========================
  3.  
  4. Introduction
  5. ------------
  6.  
  7. The accompanying files implement a Workplace Shell class that shows the
  8. current system uptime (time since boot).  Although there are several
  9. utilities that do this, it seemed nice to make it a WPS class; it is
  10. easy to move the information around the desktop, make shadows, etc.  It
  11. would of course be rare to need more than one instance of this! Also,
  12. this is dedicated to just one function, unlike (for example) PM Patrol. 
  13.  
  14. This is version 1.1, which is really a late beta.  Having said that,
  15. there is little to go wrong, and little to configure.  Feedback would be
  16. appreciated. 
  17.  
  18. Installation
  19. ------------
  20.  
  21. Unpack the ZIP file (if you are reading this, you've probably done that
  22. already).  Copy UPTIME.DLL to somewhere on the LIBPATH, and UPTIME.HLP
  23. to somewhere on the HELP path (apart from '.', which isn't relevant
  24. here). 
  25.  
  26. Edit the REG.CMD file, and add the full path of the location of the
  27. UPTIME.DLL file to the line currently containing just the UPTIME.DLL
  28. name.  This shouldn't be necessary, but in my experience it works
  29. better!
  30.  
  31. Run the REG.CMD file to register the object class.
  32.  
  33. Now run the CREATE.CMD file to create an instance on the desktop. 
  34. Answer the questions.  The refresh interval defines the frequency with
  35. which the display is updated.  This can always be changed by using the
  36. Options page in the Properties notebook. 
  37.  
  38. That's it!
  39.  
  40. Use
  41. ---
  42.  
  43. Simply double click on the object to open its Watch view.  While open,
  44. the object title text changes to show the system uptime.  To close,
  45. display the popup menu (right mouse button) and select the Close View
  46. menu item. 
  47.  
  48. Online help is also available via the Help item on the popup menu.
  49.  
  50. Uninstallation
  51. --------------
  52.  
  53. Delete all objects of the 'uptime' class.  Run the DEREG.CMD file. 
  54. reboot, and delete the UPTIME.DLL and UPTIME.HLP files. 
  55.  
  56. Implementation
  57. --------------
  58.  
  59. For those who are interested....
  60.  
  61. The system boot time is determined by using the IRQ0 high resolution
  62. timer.  Much of the code in UPTIME.DLL is used only when the view is
  63. first opened, and it is separated from the 'running' code to allow the
  64. subsequently-unused code to be paged out.  The working set is thus very
  65. small, and the impact on the system correspondingly small. 
  66.  
  67. Feedback
  68. --------
  69.  
  70. Feedback to:   Bob Eager    (rde@tavi.co.uk)
  71.  
  72.  
  73.