Does clock() work?

Norton Allen allen@huarp.harvard.edu
Tue Jan 8 19:35:00 GMT 2008


Greg Chicares wrote:
> I get similar results with the same program. According to
> C99 7.23.2.1/2,
>   "The clock function determines the processor time used."
> so I'd guess that sleep() is consuming only wall-clock time.
>   
Ah, good catch. Thank you.
Now, I am definitely interested in wall clock elapsed time. Is there 
anything available that will give me real time at resolution greater 
than one second?

-Norton



--
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