borland builder C++ - wait() ??

Discussion in 'C++' started by galaxy.uci.agh.edu.pl, Feb 5, 2005.

  1. hello,
    I'd like to use function similar to wait(milisecond) because i'd like to
    wait some time and do nothing .... what function I should use ?
    galaxy.uci.agh.edu.pl, Feb 5, 2005
    #1
    1. Advertising

  2. galaxy.uci.agh.edu.pl

    Matthias Guest

    galaxy.uci.agh.edu.pl wrote:
    > hello,
    > I'd like to use function similar to wait(milisecond) because i'd like to
    > wait some time and do nothing .... what function I should use ?
    >


    I think you are looking for sleep(seconds).

    --
    Regards,
    Matthias
    Matthias, Feb 5, 2005
    #2
    1. Advertising

  3. galaxy.uci.agh.edu.pl

    Basil Guest

    "galaxy.uci.agh.edu.pl" <> wrote in message news:<cu2mcd$4up$>...
    > hello,
    > I'd like to use function similar to wait(milisecond) because i'd like to
    > wait some time and do nothing .... what function I should use ?


    Use Sleep. This is Win API function.

    The Sleep function suspends the execution of the current thread for a
    specified interval.

    VOID Sleep(
    DWORD dwMilliseconds // sleep time in milliseconds
    );


    Parameters

    dwMilliseconds

    Specifies the time, in milliseconds, for which to suspend execution. A
    value of zero causes the thread to relinquish the remainder of its
    time slice to any other thread of equal priority that is ready to run.
    If there are no other threads of equal priority ready to run, the
    function returns immediately, and the thread continues execution. A
    value of INFINITE causes an infinite delay.

    Return Values

    This function does not return a value.

    Thank
    Basil
    Basil, Feb 7, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Piotr Karwatka

    Conversion MS VS.NET 2003 - Borland C#Builder

    Piotr Karwatka, Dec 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    356
    Kevin Spencer
    Dec 15, 2004
  2. Terrie
    Replies:
    1
    Views:
    1,380
    Terrie
    Jun 18, 2004
  3. Dariusz Plygawko
    Replies:
    3
    Views:
    428
    Dariusz Plygawko
    Jul 11, 2003
  4. Jakub Dudek
    Replies:
    1
    Views:
    425
    Peter van Merkerk
    Aug 29, 2003
  5. Replies:
    1
    Views:
    1,103
    SuperKoko
    Oct 2, 2006
Loading...

Share This Page