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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the number of clocks per second

Status
Not open for further replies.

mg911

Technical User
Jul 18, 2001
59
US
How would I get the number of clocks per second from the processor.

For example - if i have program A and I run it and it takes 123 clocks per second - how can I get the program to return that numer of clocks

I know I use the time.h
and i have tried the clock() - function

is that the correct function for that or is there a better one
 
I think what you want to do is impossible. You can not measure the correctness of a Timebase with the same Timebase. Or was it a missunderstanding on my side?

hnd
hasso55@yahoo.com

 
Thanks for responding, but the problem has been resolved (sorta)

The guy I was helping finished the program.

Thanks for your help though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top