home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.16 / text0022.txt < prev    next >
Encoding:
Text File  |  1989-08-11  |  868 b   |  28 lines

  1. Newsgroups: comp.std.unix
  2. From: uunet!hpfcdc.HP.COM!hp-sdd!donn (Donn Terry)
  3.  
  4.  
  5. CLK_TCK is usually known as HZ (which is typically 50, 60, or 100).
  6.  
  7. CLOCKS_PER_SEC is used for clock() and is typically in microseconds.
  8.  
  9. For a while they were both the same, which would be a problem, obviously.
  10.  
  11. The committees didn't detect the problem until quite late in the cycle.
  12. Both ANSI C and POSIX are having to change as a result.  The CLOCKS_PER_SEC
  13. name change was easy for X3J11; the corresponding changes in POSIX will
  14. be harder because of its status as a published standard and because it
  15. is built on ANSI C in part.  Drafts of those changes exist, but have
  16. not been approved in any way.
  17.  
  18. For now: sysconf() will always give the "right" answer for CLK_TCK, so
  19. use that. 
  20.  
  21. I'm speaking only for myself in this.
  22.  
  23. Donn Terry
  24. Chair 1003.1
  25.  
  26. Volume-Number: Volume 16, Number 20
  27.  
  28.