*BSD News Article 2456


Return to BSD News archive

Xref: sserve comp.unix.programmer:5989 comp.unix.bsd:2500 comp.unix.wizards:26216 comp.unix.questions:24698 comp.unix.internals:5052 comp.unix.misc:4457
Newsgroups: comp.unix.programmer,comp.unix.bsd,comp.unix.wizards,comp.unix.questions,comp.unix.internals,comp.unix.misc
Path: sserve!manuel!munnari.oz.au!uunet!cs.utexas.edu!torn!watserv1!watmath!undergrad.math.waterloo.edu!cayley.waterloo.edu!amichail
From: amichail@cayley.waterloo.edu (Amir Michail)
Subject: how to get virtual time
Message-ID: <Brwsrv.Hsz@undergrad.math.waterloo.edu>
Sender: news@undergrad.math.waterloo.edu
Organization: University of Waterloo
Date: Fri, 24 Jul 1992 19:57:30 GMT
Lines: 11

How do I obtain the virtual time (user & system time NOT real time) in a C 
program?

I need to do this on a sparc with accuracy in milliseconds.

Amir

P.S.  I don't want to use the virtual alarm.  I need that for something
else, and it would be much too slow to invoke frequently.