This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: struct timeval : accuracy of tv_usec
- From: "Hannu E K Nevalainen (garbage mail)" <garbage_collector at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 28 Apr 2003 10:31:02 +0200
- Subject: RE: struct timeval : accuracy of tv_usec
> From: cygwin-owner at cygwin dot com [mailto:cygwin-owner at cygwin dot com]On Behalf
> Of Alex Vinokur
--8<--
> Here is some program and results of its run.
>
> Is 'accuracy of tv_usec' is microseconds here ?
> We can see the almost 2000 prints have the same tv_usec value.
--8<--
Don't expect too much. The measure might be in microseconds, but
not even native APIs have true "accuracy" in milliseconds.
Cygwin is an emulated environment, though close to native.
Only RTOS'es guarantee any kind of accuracy - normally in milliseconds.
OLD FACTS:
The original 80's PC had an 18.2Hz interrupt driven software clock, though
it ran at 4.77MHz.
/Hannu E K Nevalainen, Mariefred, Sweden
--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/