From cse.psu.edu!owner-9fans Fri Nov 8 06:22:11 1996 Received: from cse.psu.edu ([130.203.3.50]) by cannon.ecf.toronto.edu with SMTP id <885>; Fri, 8 Nov 1996 06:22:06 -0500 Received: from localhost (majordom@localhost) by cse.psu.edu (8.7.5/8.7.3) with SMTP id GAA23146; Fri, 8 Nov 1996 06:23:15 -0500 (EST) Received: by claven.cse.psu.edu (bulk_mailer v1.5); Fri, 8 Nov 1996 06:23:05 -0500 Received: (from majordom@localhost) by cse.psu.edu (8.7.5/8.7.3) id GAA23107 for 9fans-outgoing; Fri, 8 Nov 1996 06:22:54 -0500 (EST) X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f Received: from symbionics.co.uk (symbionics-gw.pipex.net [158.43.6.17]) by cse.psu.edu (8.7.5/8.7.3) with SMTP id GAA23103 for <9fans@cse.psu.edu>; Fri, 8 Nov 1996 06:22:47 -0500 (EST) Received: from sympc267.symbionics.co.uk by symbionics.co.uk (4.1/SMI-4.1) id AA11803; Fri, 8 Nov 96 11:19:45 GMT Message-Id: <9611081119.AA11803@symbionics.co.uk> Comments: Authenticated sender is From: "Nigel Roles" To: 9fans@cse.psu.edu Date: Fri, 8 Nov 1996 05:17:49 -0500 Subject: Re: XaoS - fast realtime fractal zoomer Reply-To: ngr@symbionics.co.uk X-Mailer: Pegasus Mail for Win32 (v2.42a) Sender: owner-9fans@cse.psu.edu Reply-To: 9fans@cse.psu.edu Precedence: bulk Status: R > I did port of my XaoS to plan9. I have just small problem with timmings. > Is there any functions that returns time in miliseconds or such like > gettimeofday? Damn - try again. int msec(void) { static int fd = -1; char buf[20]; /* ish */ if (fd < 0) fd = open("/dev/msec", OREAD); else seek(fd, 0, 0); read(fd, buf, sizeof(buf)); return atoi(buf); } Nigel Roles