How to make timer in C

Discussion in 'C' started by otac, Jun 27, 2007.

  1. otac

    otac New Member

    Joined:
    Jun 27, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello everyone,

    This is my first post on this forum. What I would like to know is it possible to make some kind of a timer in C so that I can call a function periodicly. Maybe somethin with time_t or something else. If anybody has any examples it would be wellcomed.

    Thanx
     
  2. An007kit

    An007kit New Member

    Joined:
    Oct 1, 2007
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Am a student
    Location:
    Live in chandigarh, india
    You can use the sleep or delay function.......they take time as argument and wait for the time ya have entered as argument....
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice