ATT Unix millisec clock
Klaus Moeller
moeller at uniol.UUCP
Thu Aug 9 03:36:53 AEST 1990
freiss at 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 at uniol.uucp 078326 at DOLUNI1.BITNET >
\ Fill what's empty, empty what's full and scratch where it itches /
More information about the Comp.unix.questions
mailing list