On Mon, 28 Jul 2003 12:52:57 -0700, "E. Robert Tisdale"
<E.**************@jpl.nasa.gov> wrote in comp.lang.c++:
Thomas Matthews wrote:
rajiv04 wrote:
I want to have delays while calling the method(which basically
displays the information).I am using MSVC++. How can I achieve that?
I have an idea that in Java we can use sleep() for threads
but what about in C++?
In other words I want a method to be called
after a particular time interval ..may be few seconds interval...
The _standard_ C++ language has no delay or sleep functions.
These are platform specific functions.
Specifically -- POSIX conforming platforms.
....and quite a few non-POSIX conforming platforms.
But given these two facts...
1. POSIX is off-topic here.
2. The OP specifically stated he is using Microsoft's compiler, and
therefore is not running on a POSIX platform.
[snip off-topic drivel mentioning "unistd.h"]
Kindly engage brain before posting, dipstick.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
ftp://snurse-l.org/pub/acllc-c++/faq