1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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