Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Need delays in display

Reply
Thread Tools

Need delays in display

 
 
rajiv04
Guest
Posts: n/a
 
      07-28-2003

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
 
Reply With Quote
 
 
 
 
Jack Klein
Guest
Posts: n/a
 
      07-29-2003
On Mon, 28 Jul 2003 12:52:57 -0700, "E. Robert Tisdale"
<> 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
 
Reply With Quote
 
 
 
 
rajiv04
Guest
Posts: n/a
 
      07-29-2003

Thanks a lot for your insight.



Originally posted by Thomas Matthews
> 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
 
Reply With Quote
 
Thomas Matthews
Guest
Posts: n/a
 
      07-29-2003
E. Robert Tisdale wrote:

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delays-delays-delays Colin Palmer Computer Support 5 02-26-2008 04:41 AM
VHDL Simulation delays stoyan.shopov@gmail.com VHDL 5 04-13-2005 09:19 AM
how to set delays on signa;s in VHDL Viswan VHDL 5 10-07-2004 12:52 PM
delays: inertial delays vs. transport delays Neil Zanella VHDL 2 10-20-2003 07:27 AM
Synchronous processes and delays Thomas VHDL 2 07-06-2003 10:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57