* Re: gettimeofday
@ 2004-02-29 9:33 borota
0 siblings, 0 replies; 7+ messages in thread
From: borota @ 2004-02-29 9:33 UTC (permalink / raw)
To: cygwin
What I did was download the Linux man pages from The Linux Documentation
Project
(http://www.ibiblio.org/pub/Linux/docs/LDP/man-pages/man-pages-1.55.tar.gz)
'tar zxvf man-pages-1.55.tar.gz' them and then copy man2 and man4 to
C:\cygwin\usr\man (/usr/man/)
Greg
_____________________________________________
Hi,
I want read the manual of the C++ function gettimeofday. But I can't
find it. I'm not sure whether I installed it or not. Can somebody help me?
Thanks.
Best wishes,
Peng
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gettimeofday
2004-02-29 10:57 ` gettimeofday Tim Prince
@ 2004-03-01 18:51 ` Brian Ford
0 siblings, 0 replies; 7+ messages in thread
From: Brian Ford @ 2004-03-01 18:51 UTC (permalink / raw)
To: Tim Prince; +Cc: Peng Yu, cygwin
On Sat, 28 Feb 2004, Tim Prince wrote:
> The implementation used by cygwin doesn't set the fractional seconds
> fields, so you must fall back on the Windows API for milliseconds.
>
and
> The cygwin specific code in the g77 date_and_time() source code shows use
> of the Windows API call to compensate for this lack in cygwin
> gettimeofday().
>
I think your information may be out-of-date. gettimeofday()
appears to currently have approximately one to two millisecond resolution
on XP. What do you see?
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gettimeofday
2004-02-29 10:52 ` gettimeofday Peng Yu
@ 2004-02-29 10:57 ` Tim Prince
2004-03-01 18:51 ` gettimeofday Brian Ford
0 siblings, 1 reply; 7+ messages in thread
From: Tim Prince @ 2004-02-29 10:57 UTC (permalink / raw)
To: Peng Yu, cygwin
At 11:00 PM 2/28/2004, Peng Yu wrote:
>What is AFAIK?
>How I can fall back on the Windows API?
The cygwin specific code in the g77 date_and_time() source code shows use
of the Windows API call to compensate for this lack in cygwin
gettimeofday(). http://cygwin.com/acronyms/ Way back in the archives
are far more knowledgeable suggestions than I could give on studying the
Windows API functions as implemented for cygwin.
Tim Prince
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gettimeofday
2004-02-29 10:47 ` gettimeofday Tim Prince
@ 2004-02-29 10:52 ` Peng Yu
2004-02-29 10:57 ` gettimeofday Tim Prince
0 siblings, 1 reply; 7+ messages in thread
From: Peng Yu @ 2004-02-29 10:52 UTC (permalink / raw)
To: cygwin, Tim Prince
What is AFAIK?
How I can fall back on the Windows API?
Peng
----- Original Message -----
From: "Tim Prince" <tprince@computer.org>
To: "Peng Yu" <yupeng_@hotmail.com>; <cygwin@cygwin.com>
Sent: Saturday, February 28, 2004 10:54 PM
Subject: Re: gettimeofday
> At 09:53 PM 2/28/2004, Peng Yu wrote:
>
> >Hi,
> >
> > I want read the manual of the C++ function gettimeofday. But I can't
> >find it. I'm not sure whether I installed it or not. Can somebody help
me?
> >Thanks.
>
> Not part of C++ AFAIK. It's a posix function with C binding. Apparently,
> there's no cygwin specific documentation other than source code. The
> implementation used by cygwin doesn't set the fractional seconds fields,
so
> you must fall back on the Windows API for milliseconds.
>
>
> Tim Prince
>
>
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gettimeofday
2004-02-29 6:55 gettimeofday Peng Yu
2004-02-29 7:21 ` gettimeofday Brian Dessent
@ 2004-02-29 10:47 ` Tim Prince
2004-02-29 10:52 ` gettimeofday Peng Yu
1 sibling, 1 reply; 7+ messages in thread
From: Tim Prince @ 2004-02-29 10:47 UTC (permalink / raw)
To: Peng Yu, cygwin
At 09:53 PM 2/28/2004, Peng Yu wrote:
>Hi,
>
> I want read the manual of the C++ function gettimeofday. But I can't
>find it. I'm not sure whether I installed it or not. Can somebody help me?
>Thanks.
Not part of C++ AFAIK. It's a posix function with C binding. Apparently,
there's no cygwin specific documentation other than source code. The
implementation used by cygwin doesn't set the fractional seconds fields, so
you must fall back on the Windows API for milliseconds.
Tim Prince
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: gettimeofday
2004-02-29 6:55 gettimeofday Peng Yu
@ 2004-02-29 7:21 ` Brian Dessent
2004-02-29 10:47 ` gettimeofday Tim Prince
1 sibling, 0 replies; 7+ messages in thread
From: Brian Dessent @ 2004-02-29 7:21 UTC (permalink / raw)
To: cygwin
Peng Yu wrote:
> I want read the manual of the C++ function gettimeofday. But I can't
> find it. I'm not sure whether I installed it or not. Can somebody help me?
That function is a C function, and it's part of libc, the standard C
library. "info libc" is a good place to start. However, there's not
much more than a mention of it in the Cygwin libc texinfo system, so you
will then want to look elsewhere.
This is a standard posix library function, so you can look at the SuSv3
standard definition:
http://www.opengroup.org/onlinepubs/007904975/functions/gettimeofday.html
... as well as manpages for common unix platforms, such as FreeBSD:
http://www.freebsd.org/cgi/man.cgi?query=gettimeofday&sektion=2
... or Linux:
http://www.gnu.org/software/libc/manual/html_node/High-Resolution-Calendar.html
... or Solaris:
http://docs.sun.com/db/doc/816-0213/6m6ne382d?a=view
Brian
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
* gettimeofday
@ 2004-02-29 6:55 Peng Yu
2004-02-29 7:21 ` gettimeofday Brian Dessent
2004-02-29 10:47 ` gettimeofday Tim Prince
0 siblings, 2 replies; 7+ messages in thread
From: Peng Yu @ 2004-02-29 6:55 UTC (permalink / raw)
To: cygwin
Hi,
I want read the manual of the C++ function gettimeofday. But I can't
find it. I'm not sure whether I installed it or not. Can somebody help me?
Thanks.
Best wishes,
Peng
--
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/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-03-01 18:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-29 9:33 gettimeofday borota
-- strict thread matches above, loose matches on Subject: below --
2004-02-29 6:55 gettimeofday Peng Yu
2004-02-29 7:21 ` gettimeofday Brian Dessent
2004-02-29 10:47 ` gettimeofday Tim Prince
2004-02-29 10:52 ` gettimeofday Peng Yu
2004-02-29 10:57 ` gettimeofday Tim Prince
2004-03-01 18:51 ` gettimeofday Brian Ford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).