home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8067 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  975 b 

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!darwin.sura.net!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
  2. From: louie@sayshell.umd.edu (Louis A. Mamakos)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: Trouble with setitimer and getitimer.
  5. Date: 11 Jan 1993 15:29:37 GMT
  6. Organization: The University of Maryland, College Park
  7. Lines: 14
  8. Message-ID: <1is3p1INNj0e@ni.umd.edu>
  9. References: <1993Jan8.215238.29927@news2.cis.umn.edu>
  10. NNTP-Posting-Host: sayshell.umd.edu
  11.  
  12. In article <1993Jan8.215238.29927@news2.cis.umn.edu> jalegre@tsp.med.umn.edu (John Alegre) writes:
  13. >I am trying to time a tight SCSI read loop on a 
  14. >NeXT machine.
  15. >
  16. >I am having trouble with the UNIX functions
  17. >setitimer and getitimer.
  18.  
  19. You don't want to use setitimer or getitimer, which are used to generate
  20. alarm clock signals to your process.  What you really want to use is
  21. gettimeofday() before and after.  Do 'man 2 gettimeofday' and also look
  22. at <sys/timer.h>
  23.  
  24. Louis Mamakos
  25.  
  26.