🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2296

Re: Trouble with setitimer and getitimer.

#2296
From: Louis A. Mamakos
Date: Mon, 11 Jan 1993 15:29
13 lines
998 bytes
In article <1993Jan8.215238.29927@news2.cis.umn.edu> jalegre@tsp.med.umn.edu (John Alegre) writes:
>I am trying to time a tight SCSI read loop on a 
>NeXT machine.
>
>I am having trouble with the UNIX functions
>setitimer and getitimer.

You don't want to use setitimer or getitimer, which are used to generate
alarm clock signals to your process.  What you really want to use is
gettimeofday() before and after.  Do 'man 2 gettimeofday' and also look
at <sys/timer.h>

Louis Mamakos
Technical Details
Message-ID: <1is3p1INNj0e@ni.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!darwin.sura.net!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
References: <1993Jan8.215238.29927@news2.cis.umn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!darwin.sura.net!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Newsgroups: comp.sys.next.programmer
Subject: Re: Trouble with setitimer and getitimer.
Date: 11 Jan 1993 15:29:37 GMT
Organization: The University of Maryland, College Park
Lines: 14
Message-ID: <1is3p1INNj0e@ni.umd.edu>
References: <1993Jan8.215238.29927@news2.cis.umn.edu>
NNTP-Posting-Host: sayshell.umd.edu