This is the mail archive of the cygwin@cygwin.com 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: pthread_cond_timedwait accurate to one second only


> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of peter garrone

> I would like to use this function down to 10 milliseconds
> accuracy if possible.
> However upon looking at winsup/cygwin/thread.cc,
> it uses the function "ftime" and the millisecond field is ignored.
>
> All the examples in the winsup testsuite also generally check to
> 5 seconds only.
>
> Is there any inherent reason why finer timing would not work?

In general; You're asking for RTOS granularity from a desktop OS.

Desktop OS'es in general allows that accuracy only in theoretical terms.
This might very well be the sole reason.

Expect even less accuracy from Cygwin; because it is a partly emulated
environment. NOTE: not saying to which degree here... I simply do not know.

/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems - 59°16.37'N,
17°12.60'E
--END OF MESSAGE--


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