LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   return value of Clock function (https://www.linuxquestions.org/questions/programming-9/return-value-of-clock-function-632198/)

namanhams 04-01-2008 10:13 AM

return value of Clock function
 
Hi everyone,

I have a quesion regarding the clock() function. Actually i've read the man page, but still dont understand the return value of this function.

If the function return 10000, is it the number of clock ticks ?

osor 04-01-2008 12:00 PM

It is the number of clock cycles your program has used since it was started. You can convert it to a number of seconds by dividing by CLOCKS_PER_SEC.


All times are GMT -5. The time now is 06:42 AM.