Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

time function in c++

Status
Not open for further replies.

vaidehi

Programmer
Nov 12, 2002
1
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top