borland c++

This is a discussion on borland c++ within the C++ Programming forums, part of the General Programming Boards category; hello, i want to make a reaction timer, that when you press a button you measure the time which wil ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    4

    Question borland c++

    hello,

    i want to make a reaction timer, that when you press a button you measure the time which wil be displayed in a graphic. and then 4 trise.

    i don't now how to start, can anybody help???
    henk.

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    21
    hey....

    you can start using a variable
    t_beggining=time (NULL);
    at the beggining, at the end of ur program, an other:
    t_end=time(NULL);

    to have the result, subtract them:

    T_reaction=t_end-t_beggining;

    hope it helps....

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    4

    borland c++

    DeViLs_SouL
    what do you mean
    can you explain the program or a little bit of
    the source code


    ....much thx

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21