time.sleep()

Discussion in 'Python' started by Bart Nessux, Mar 2, 2004.

  1. Bart Nessux

    Bart Nessux Guest

    Does standard C have anything like Python's time.sleep() function?
    Bart Nessux, Mar 2, 2004
    #1
    1. Advertising

  2. Bart Nessux <> writes:

    > Does standard C have anything like Python's time.sleep() function?


    I don't think so. IIRC, on windows the win32 api Sleep() is used, on
    linux probably select(). Read the source to find out.

    Thomas
    Thomas Heller, Mar 2, 2004
    #2
    1. Advertising

  3. Bart Nessux

    Bob Ippolito Guest

    On 2004-03-02 13:05:01 -0500, Bart Nessux <> said:

    > Does standard C have anything like Python's time.sleep() function?


    It's not really "standard" but you can usually get away with nanosleep
    or select.

    -bob
    Bob Ippolito, Mar 2, 2004
    #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. al
    Replies:
    3
    Views:
    2,681
  2. Gonzalo Moreno
    Replies:
    2
    Views:
    12,384
  3. flamesrock
    Replies:
    8
    Views:
    440
    Hendrik van Rooyen
    Nov 24, 2006
  4. Sam Roberts
    Replies:
    16
    Views:
    365
    Daniel Berger
    Feb 18, 2005
  5. Richard
    Replies:
    7
    Views:
    218
    Richard
    May 22, 2007
Loading...

Share This Page