Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 04:49 PM
rajiv04
Guest
 
Posts: n/a
Default Need delays in display


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
  #2  
Old July 19th, 2005, 04:50 PM
Jack Klein
Guest
 
Posts: n/a
Default Re: Need delays in display

On Mon, 28 Jul 2003 12:52:57 -0700, "E. Robert Tisdale"
<E.Robert.Tisdale@jpl.nasa.gov> wrote in comp.lang.c++:
[color=blue]
> Thomas Matthews wrote:
>[color=green]
> > rajiv04 wrote:
> >[color=darkred]
> >> 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...[/color]
> >
> > The _standard_ C++ language has no delay or sleep functions.
> > These are platform specific functions.[/color]
>
> Specifically -- POSIX conforming platforms.[/color]

....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
  #3  
Old July 19th, 2005, 04:51 PM
rajiv04
Guest
 
Posts: n/a
Default Re: Need delays in display


Thanks a lot for your insight.



Originally posted by Thomas Matthews[color=blue]
> rajiv04 wrote:[color=green]
> > Hi all
> >
> > I want to have delays while calling the method(which[/color]
> basically[color=green]
> > displays the information).I am using MSVC++. How can I achieve[/color]
> that?[color=green]
> > Any clues pls......
> > I have an idea that in Java we can use sleep() for threads but[/color]
> what[color=green]
> > abt in c++?
> >
> > In other words I want a method to be called after a particular[/color]
> time[color=green]
> > interval ..may be few seconds interval...
> >
> > Thanks
> >
> > --
> > Posted via[/color]
> 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:[/color]
http://www.josuttis.com/http://www.josuttis.com --
C++ STL Library book

--
Posted via http://dbforums.com
  #4  
Old July 19th, 2005, 04:51 PM
Thomas Matthews
Guest
 
Posts: n/a
Default Re: Need delays in display

E. Robert Tisdale wrote:
[color=blue]
> Thomas Matthews wrote:
>[color=green]
>> rajiv04 wrote:
>>[color=darkred]
>>> 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...[/color]
>>
>>
>> The _standard_ C++ language has no delay or sleep functions.
>> These are platform specific functions.[/color]
>
>
> Specifically -- POSIX conforming platforms.
>[color=green]
>> Check your compiler's documentation.
>> Also search their newsgroups and FAQs.
>> See the welcome.txt link below.[/color][/color]

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

 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles