Norton Allen wrote:
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?

I found gettimeofday() that seems to do the trick.
-N


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

Reply via email to