PRB: Documentation Error: ftime Returns millitm to 100ths

ID Number: Q31611

4.00 5.00 5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

docerr

Summary:

The ftime() function is described in a misleading way in the

"Microsoft C Optimizing Compiler Run-Time Library Reference," page 308

for C versions 5.0 and 5.1 and page 217 for C version 4.0.

The field millitm in the timeb structure that ftime returns is

described to hold the value of the fraction of a second in

milliseconds. The field contains three digits as described; however,

the last digit always is zero. Thus, the function returns millitm

incremented to the nearest one hundredth of a second.

Note also that this function uses the system clock to determine the

time. Because the resolution of the clock on PCs is about 1/18.2

seconds, the time function cannot be more accurate than that.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax