comp_t

Robert Dinse nanook at eskimo.celestial.com
Sun Apr 28 20:55:31 AEST 1991


     I am trying to write a program that looks at system accounting data
and figures out what programs use how much CPU time.

     The file has a structure that has several items in a data type
"comp_t", which is packed into an unsigned short (16 bits). The
comments say:

	/* 13-bit fraction, 3-bit exponent */

     This is on a Tandy 6000 running Xenix 3.02.01.

     Can anybody tell me how to turn this funny 16-bit float into an
interger number? This is used for CPU time in clock ticks.



More information about the Comp.unix.programmer mailing list