MSC delay() routine?

Shiping Zhang ping at cubmol.bio.columbia.edu
Tue Mar 13 14:14:57 AEST 1990


In article <1280001 at hpcc01.HP.COM> azarian at hpcc01.HP.COM (Randy Azarian) writes:
>Does anyone have a delay routine written in C?

How about sleep()?
 
>Here is what I have.  It works, but it isn't too consistant. 
>If I say delay(1), sometimes I get a delay for one second, and sometimes I 
>get a microsecond delay.

[...]
>  struct dostime_t time1, time2;
[...]
>  _dos_gettime(&time1); time2=time1;
                         ^^^^^^^^^^^
You can't assign a struct like that. You must assign the elements
of a struct individually.


-ping



More information about the Comp.lang.c mailing list