Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!charyb!dan From: dan@kfw.COM (Dan Mick) Newsgroups: comp.lang.c Subject: Re: MSC delay() routine? Message-ID: <1990Mar13.200914.629@kfw.COM> Date: 13 Mar 90 20:09:14 GMT References: <1280001@hpcc01.HP.COM> <1990Mar13.041457.17217@cubmol.bio.columbia.edu> Reply-To: uunet!charyb!dan (Dan Mick) Organization: KFW Corporation, Newbury Park, CA Lines: 26 In article <1990Mar13.041457.17217@cubmol.bio.columbia.edu> ping@cubmol.bio.columbia.edu (Shiping Zhang) writes: |In article <1280001@hpcc01.HP.COM> azarian@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. #define FLAME OF COURSE YOU CAN ASSIGN A STRUCT LIKE THAT! Post answers *after* you know what you're talking about, dammit! EVERY C COMPILER I'VE USED ALLOWS STRUCT ASSIGNMENT, *MUCH LESS* Turbo C!!!!! #undef FLAME