Does clock() work?

Dave Korn dave.korn@artimi.com
Tue Jan 8 22:11:00 GMT 2008


On 08 January 2008 19:35, Greg Chicares wrote:

>   [ TEST CASE ]

> /tmp[0]$./clock_test
> CLOCKS_PER_SEC = 1000
> clock() = 30
> gettimeofday() = 210033718
> clock() = 30
> gettimeofday() = 211033718
> clock() = 30
> gettimeofday() = 212033718
> clock() = 30
> gettimeofday() = 213033718
> clock() = 30
> gettimeofday() = 214033718
> clock() = 30
> gettimeofday() = 215033718
> clock() = 30
> gettimeofday() = 216033718
> clock() = 30
> gettimeofday() = 217033718


  clock_setres might help with that.  (Disclaimer: Unverified statement).


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list