Thread: Chronometer

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    3

    Chronometer

    Hi, How can i make a Chronometer in C, i need to have 2 buttons start and stop and i have to display the chronometer while is running on screen....


    Thanks....

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    What sort of printing on screen have you managed to master so far?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    3
    Im new on C, im using visual c++ to do this because my boss give me that task, i usually program in other tools like c#, vb .net but i have never used C++... i need to print the 00:00 on medium size screen and when i press start need to move the seconds on screen, i think that i can use a timer but i dont know if its a good idea.. and how can i clear and print the seconds...

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Something like a WM_TIMER event may prove useful.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    3
    Thanks... i did it using Timer and WM_TIMER !!!

Popular pages Recent additions subscribe to a feed

Tags for this Thread