Hello,
I am writing a code for a dll which uses a hardware card TDC. I count the events on the card. What I want to find is number of events/sec. By continuously running the dll I get the number of events. i.e.
I have a while loop whenever that loop exits I increment the event. What I want is I need a timer which outputs the number of event as soon as one second completes. Using
clock() is not helpful as we need to assign value of clock() to a variable (I mean clock_t finish). I need that as soon as one second completes it should tell me the value of my event counter.
Thanks for help
Vaidehi
I am writing a code for a dll which uses a hardware card TDC. I count the events on the card. What I want to find is number of events/sec. By continuously running the dll I get the number of events. i.e.
I have a while loop whenever that loop exits I increment the event. What I want is I need a timer which outputs the number of event as soon as one second completes. Using
clock() is not helpful as we need to assign value of clock() to a variable (I mean clock_t finish). I need that as soon as one second completes it should tell me the value of my event counter.
Thanks for help
Vaidehi