Topic: looking for ANSI C++ Sleep command


Author: "Ron Ruble" <r.a.f.f.l.e.s.2@worldnet.att.net>
Date: 2000/01/26
Raw View
No, but Unix has a sleep() function, and Windows
has a Sleep() API call. Just write a conditional
#define for Windows that defines sleep() as
Sleep, with the appropriate conditional include.

Ray Hernandez wrote in message <86kbjv$2e03$1@msunews.cl.msu.edu>...
>Dear All, I am programming a win32 console app, which uses
>opengl to draw a circle and some lines. I need help in figuring
>out a sleep command that I can use on both a unix machine
>and a pc. I am using the Glut libraries to do this, so that it can
>be cross platform. Is there a cross-platform sleep command?
>--Ray




[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]