This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Does clock() work?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]