C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need delays in display

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
rajiv04
Guest





PostPosted: Mon Jul 28, 2003 7:18 pm    Post subject: Need delays in display Reply with quote




Hi all

I want to have delays while calling the method(which basically
displays the information).I am using MSVC++. How can I achieve that?
Any clues pls......
I have an idea that in Java we can use sleep() for threads but what
abt in c++?

In other words I want a method to be called after a particular time
interval ..may be few seconds interval...

Thanks

--
Posted via http://dbforums.com
Back to top
Jack Klein
Guest





PostPosted: Tue Jul 29, 2003 4:59 am    Post subject: Re: Need delays in display Reply with quote



On Mon, 28 Jul 2003 12:52:57 -0700, "E. Robert Tisdale"
<E.Robert.Tisdale (AT) jpl (DOT) nasa.gov> wrote in comp.lang.c++:

Quote:
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

Back to top
rajiv04
Guest





PostPosted: Tue Jul 29, 2003 1:40 pm    Post subject: Re: Need delays in display Reply with quote




Thanks a lot for your insight.



Originally posted by Thomas Matthews
Quote:
rajiv04 wrote:
Hi all

I want to have delays while calling the method(which
basically
displays the information).I am using MSVC++. How can I achieve
that?
Any clues pls......
I have an idea that in Java we can use sleep() for threads but
what
abt in c++?

In other words I want a method to be called after a particular
time
interval ..may be few seconds interval...

Thanks

--
Posted via
http://dbforums.com/http://dbforums.com

The _standard_ C++ language has no delay or sleep functions. These
are platform specific functions. Check your compiler's documentation.
Also search their newsgroups and FAQs. See the welcome.txt link
below.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt"]http://www.s-
lack.net/~shiva/welcome.txt[/url]
C++ Faq: http://www.parashift.com/c++-faq-lite"]http://www.para-
shift.com/c++-faq-lite[/url]
C Faq: http://www.eskimo.com/~scs/c-faq/top.html"]http://www.-
eskimo.com/~scs/c-faq/top.html[/url]
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html"]http://w-
ww.raos.demon.uk/acllc-c++/faq.html[/url]
Other sites:
http://www.josuttis.com/http://www.josuttis.com --

C++ STL Library book

--
Posted via http://dbforums.com

Back to top
Thomas Matthews
Guest





PostPosted: Tue Jul 29, 2003 2:22 pm    Post subject: Re: Need delays in display Reply with quote

E. Robert Tisdale wrote:

Quote:
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.

Check your compiler's documentation.
Also search their newsgroups and FAQs.
See the welcome.txt link below.

E. Robert,

Please note that POSIX compliant platforms do have a sleep()
function, the _functionality_ may be in other operating
systems under other other names, such as semaphores, mutexes,
signals and events. All of this is off-topic in _this_
newsgroup.

-- Thomas

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.