Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!decwrl!stanford.edu!msi.umn.edu!umeecs!heavy From: heavy@zip.eecs.umich.edu (Richard Scott Hall) Newsgroups: comp.sys.atari.st.tech Subject: GNU C and evnt_timer() Summary: It takes too long... Keywords: GNU C, evnt_timer, evnt_multi Message-ID: <1991Apr24.033643.12187@zip.eecs.umich.edu> Date: 24 Apr 91 03:36:43 GMT Sender: Richard Hall ( heavy@zip.eecs.umich.edu ) Distribution: all Organization: University of Michigan EECS Dept. Lines: 24 I seem to keep having problems with my C compilers. First I had Laser C, but I wanted ANSI so I bought Lattice 5, but it was quite buggy, so now I am using GNU C. Anyway, I was using evnt_timer/evnt_multi to wait for a certain amount of time in Lattice C, then I would poll the serial port to see if anything had arrived...well, this worked fine for Lattice with a wait count of 10 (low-count). Well needless to say, this doesn't work fine for GNU C. Any amount of time over 0 is pathetically slow. I mean I set it to 100 for one particular instance and I would still be waiting for it to time-out if I hadn't rebooted. What's the deal? Does GNU use seconds instead of milli-seconds for its timer calls? I really need to have this work so I can look for bar-code reader input...it works in Lattice!! Any help is greatly appreciated. Richard Hall University of Michigan -- Standard disclaimer: I am not me, I am who you think you are... so don't blame me.