home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / ibm / pc / hardware / 22646 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.sys.ibm.pc.hardware
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!gumby!destroyer!ais.org!draper
  3. From: draper@ais.org (Patrick Draper)
  4. Subject: Re: Help needed to keep the TIME
  5. Message-ID: <BtKA1t.Myt@ais.org>
  6. Keywords: time, help
  7. Organization: UMCC
  8. References: <Alex.29.714747452@camp.wpic.pitt.edu> <francis.49.0@mpl.ucsd.edu>
  9. Date: Tue, 25 Aug 1992 22:49:00 GMT
  10. Lines: 27
  11.  
  12. I'm confused by the whole PC clock issue. I *know* that the clock maintained
  13. y DOS is screwy. I have a program that displays the time and date on the
  14. screen. Every once in a while, the computer will lose it's mind and lose
  15. track of the correct date and/or time.
  16.  
  17. What I did is re-write the function time() in the C standard library to read
  18. the hardware clock directly.
  19.  
  20. So, sometimes, the display in my program will be entirely correct, but when
  21. I go to DOS, the date will be off into the next century or something like
  22. that.
  23.  
  24. I know that it's not a hardware failure, because *all* of our computers do
  25. this every once in a while.
  26.  
  27. Is the internal hardware clock quartz accurate? If not, why the heck can't
  28. it be that way? I can't believe that in order to be IBM compatible the
  29. mother board manufacturers even duplicated a clock that drifts around...
  30.  
  31.  
  32.  
  33. ------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------
  34. | Patrick Draper           Disclaimer:  I can't control my fingers,        |
  35. | draper@umcc.ais.org                   I can't control my toes! - Ramones |
  36. | University of Michigan                                                   |
  37. | Computer Club                We are a nation of laws, not people         |
  38. ------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
  39.