Delays

This is a discussion on Delays within the C Programming forums, part of the General Programming Boards category; Does anyone know how can i delay something in c. I have a program that need to display a accounts, ...

  1. #1
    Unregistered
    Guest

    Talking Delays

    Does anyone know how can i delay something in c. I have a program that need to display a accounts, but for security reason i need to clear the screen after 10 sec after the account show up. Os i need some timer control so the screen can clear before the next accout show up.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    One interesting way to do it is to use select(). I'm sure if you had actually read the FAQ you'd have found information on pausing and screen clearing...

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    202
    #include <dos.h>

    sleep(10000);



    That should be 10 seconds

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    > Does anyone know how can i delay something in c
    Depends on your OS

  5. #5
    Registered User
    Join Date
    Oct 2001
    Posts
    197
    Code:
    for(count=0;count<max;) ;
    You have to try what value for max makes any sense.

    klausi
    When I close my eyes nobody can see me...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating waits and processing delays
    By ulillillia in forum Windows Programming
    Replies: 16
    Last Post: 12-24-2006, 03:52 PM
  2. time Delays and Random functions
    By markphaser in forum C++ Programming
    Replies: 17
    Last Post: 02-20-2006, 06:10 PM
  3. delays
    By luigi40 in forum C# Programming
    Replies: 6
    Last Post: 04-11-2005, 01:49 AM
  4. Quick Delays
    By bigB8210 in forum C Programming
    Replies: 1
    Last Post: 07-10-2003, 02:06 PM
  5. precision delays
    By marcdawson in forum C Programming
    Replies: 5
    Last Post: 11-08-2002, 10:03 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21