473,499 Members | 1,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 19 '05 #1
3 2603
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
Jul 19 '05 #2

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
Jul 19 '05 #3
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

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1324
by: roisin | last post by:
In a previous post I was advised (thanks for that Mark Schupp) to execute net send commands from a .bat file rather than an ASP page - so I have written a a script in my web page that will...
3
2035
by: Jan Moravec | last post by:
Hi, I have written a Java UDF for DB2 and registered it using the following params: CREATE FUNCTION arsu_bit_value ( varchar(32) for bit data, integer ) RETURNS INTEGER EXTERNAL NAME...
2
1057
by: Shapper | last post by:
Hello, I am starting a new web site project which I will launch in January of 2006. I didn't decided yet if I will create it in Asp.Net 2.0 using MS Visual Studio 2005 and MS SQL 2005 or in...
18
9794
by: barry | last post by:
I'm having a problem creating a delay before each list item gets moved ( http://www.polisource.com/PublicMisc/list-splitter-timeout-bug.html ). Choose any number of columns, vertical layout, and...
3
1302
by: eager | last post by:
Hi dear friends What i want to ask about now is about delays in vb.net . i want to write a program which displays different images in to a picture box every 2 secs so if u can send me any...
6
1658
by: squishy | last post by:
I tried to hire programmers to do some stuff, but cannot find reliable, intelligent C++ Gurus (at Guru or RentACoder at least). So I am stuck learning C++ and doing the jobs myself. I would...
3
2712
by: The alMIGHTY N | last post by:
I have an XSL file that works with a typically large XML data set generated dynamically from a database. This data is written to the HTML result as a deep multi-dimensional array that is used by...
1
1821
by: ElenaB | last post by:
Hi, I have an application that needs to create and copy files in multiple locations that can be share folder on the network. I'm using System.IO.Directory.Exists() method to determine if...
2
1676
by: Lou | last post by:
How can I add a delay in my code. I used to use "Sleep" in VB6 -Lou
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3108
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.