Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!vaxb.rhbnc.ac.uk!UHAP033 From: UHAP033@vaxb.rhbnc.ac.uk Newsgroups: comp.sys.transputer Subject: Measuring elapsed CPU time for a single process Message-ID: <202015A9_00111388.0092910DC5B2FD80$8_1@UK.AC.RHBNC.VAXB> Date: 10 Aug 89 14:38:23 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 85 Hello all, I am currently working on an image processing simulation program that requires a single process on a transputer to determine how much CPU time it has had (but not that of any other processes in parallel with it) ie: PRI PAR PAR ... pass data down ... pass data up ... wait for a known time -- this it the problem bit My current process looks something like (slightly simplified): BOOL not.yet.finished: TIMER clock: INT pause.1,pause.2,elapsed.time: SEQ not.yet.finished:= TRUE clock ? pause.1 WHILE not.yet.finished SEQ clock ? pause.2 elapsed.time:= pause.2-pause.1 not.yet.finished:= (elapsed.time