Making a Timer Function (Stopwatch Function)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Firecore
    New Member
    • Jul 2007
    • 114

    #1

    Making a Timer Function (Stopwatch Function)

    Hello.
    I am making a Stopwatch program in C.
    Can anyone help?
    Is it possible to make a timer(stopwatch ) function in C?
  • mac11
    Contributor
    • Apr 2007
    • 256

    #2
    yes it's possible (in fact I think you can build just about any sort of program with c)

    If your using linux you can look into gettimeofday()


    If your using Windows there has to be another way of getting the time, so search your docs for that instead.

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      If you are using Windows look up/search for

      GetSystemTime(. ..)

      or

      GetSystemTimeAs FileTime(...)

      Comment

      • Firecore
        New Member
        • Jul 2007
        • 114

        #4
        Originally posted by Banfa
        If you are using Windows look up/search for

        GetSystemTime(. ..)

        or

        GetSystemTimeAs FileTime(...)
        I see.
        Thanx for that.
        I'll ask for help if I need it.
        I jus needed someone to point me in the right direction.

        Comment

        • totoy
          New Member
          • Sep 2007
          • 5

          #5
          have you figured out how to make a stopwatch yet? if so,help

          Comment

          • sicarie
            Recognized Expert Specialist
            • Nov 2006
            • 4677

            #6
            Originally posted by totoy
            have you figured out how to make a stopwatch yet? if so,help
            I'll give you a hint - they pointed the OP in the right direction (and it's the right direction for you as well).

            Have you Googled those yet?

            Comment

            • totoy
              New Member
              • Sep 2007
              • 5

              #7
              Originally posted by sicarie
              I'll give you a hint - they pointed the OP in the right direction (and it's the right direction for you as well).

              Have you Googled those yet?
              im trying to,its just there are too many junk in the net you cant even use

              Comment

              • totoy
                New Member
                • Sep 2007
                • 5

                #8
                how can i find my posted question?

                Comment

                • Banfa
                  Recognized Expert Expert
                  • Feb 2006
                  • 9067

                  #9
                  Originally posted by totoy
                  how can i find my posted question?
                  Top right of the page select control panel, all your subscribed recently posted to threads are listed.

                  If it is not in that list on that page on the right towards the bottom select "View All Subscribed Threads"

                  Comment

                  Working...