🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5007

Re: Generating delays

#5007
From: Joe Huffman
Date: Mon, 04 Mar 1991 17:01
30 lines
1629 bytes
melling@cs.psu.edu (Michael D Mellinger) writes:

>I need to be able to generate delays of around 1/2 second.  Anyone
>have a good way of doing this?  I'm using MS C 6.0.  The best I can
>come up with is a 1 second delay.

Depending on your machine that may be the best you can do.  For
example the Hitachi 2020 (sold in Japan only) only generates (at least 
4 years ago when I was looking at the problem) a clock tick once per second.
For more convential machines you can use msleep(500) (millisecond sleep) 
if you were using the Zortech compiler.

>Also, how does MS C compare with Borland C++ and Zortech C++?  Borland

If MSC doesn't have this function or handle C++ code then it's deficient
in at least two areas.  Other comments from me about MSC would be too biased 
to be worth your time reading.

---
Zortech mailing list: send email to 'ztc-list-request@uunet.uu.net' with:
Add: your-user-name@your-machine-name
In the body of the message.
---
Send Zortech bug reports to 'zortech-bugs@zortech.com'
Send requests for educational discounts to 'zortech-ed@zortech.com'
---
Zortech is my major source of income.  Statements about them or their 
competitors cannot be totally without bias.  
-- 
joe@proto.com
Technical Details
Message-ID: <1991Mar04.170140.2438@proto.com>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!proto!joe
References: <sg2Gwuw?@cs.psu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!proto!joe
From: joe@proto.com (Joe Huffman)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Generating delays
Message-ID: <1991Mar04.170140.2438@proto.com>
Date: 4 Mar 91 17:01:40 GMT
References: <sg2Gwuw?@cs.psu.edu>
Distribution: comp
Organization: Prototronics @ Sandpoint, Idaho
Lines: 30