Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!uniol!moeller From: moeller@uniol.UUCP (Klaus Moeller) Newsgroups: comp.unix.questions Subject: Re: ATT Unix millisec clock Message-ID: <3213@uniol.UUCP> Date: 8 Aug 90 17:36:53 GMT References: Distribution: comp Organization: University of Oldenburg, W-Germany Lines: 28 freiss@nixpbe.UUCP (the hacker) writes: >So far, only SECOND resolution is permitted through the ATT Unix OS to time >the elapsed time of a job. Millisecond resolution (or better) accessed >from a .c executable is desired. I am running ATT Unix Version System 5 >Version 3.2 on a Motorola 68020 based machine. >System interrupts? Shell commands? Any solution to this thorny problem would >be greatly appreciated... We faced the same problem, finer than one-second resolution, here before. We use SysV3.1 on a 68020 type too (with some BSD enhancements). IF you have the select call on your machine, you can build yourself a fine tuneable sleep call. Simply build an empty file set and select on it with the numbber of milliseconds you want to sleep. Since the call has nothing to select, it will time out and your program will resume after that number of millseconds. If you want to have a millisecond - precise clock or somthing like that, I'm sorry, I can offer no help. Klaus Moeller -- / Klaus Moeller, Leiteweg 2, 2940 Wilhelmshaven, West - Germany \ < moeller@uniol.uucp 078326@DOLUNI1.BITNET > \ Fill what's empty, empty what's full and scratch where it itches /