From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 8 Nov 1996 11:17:49 +0100 From: Nigel Roles ngr@symbionics.co.uk Subject: XaoS - fast realtime fractal zoomer Topicbox-Message-UUID: 5145c816-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19961108101749.pWmMB2PUDSL7Tx2pYkKC_ks6gUBVcNGZQXbHEYnJFHA@z> > 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