time.sleep()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bart Nessux

    time.sleep()

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

  • Thomas Heller

    #2
    Re: time.sleep()

    Bart Nessux <bart_nessux@ho tmail.com> writes:
    [color=blue]
    > Does standard C have anything like Python's time.sleep() function?[/color]

    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


    Comment

    • Bob Ippolito

      #3
      Re: time.sleep()

      On 2004-03-02 13:05:01 -0500, Bart Nessux <bart_nessux@ho tmail.com> said:
      [color=blue]
      > Does standard C have anything like Python's time.sleep() function?[/color]

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

      -bob

      Comment

      Working...