From -6481314385327364619
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,3b2d33f1a39395a6
X-Google-Attributes: gidf78e5,public
From: jcoffin@taeus.com (Jerry Coffin)
Subject: Re: Getting system time
Date: 1999/03/13
Message-ID: <MPG.11534946277b31a3989935@news.rmi.net>#1/1
X-Deja-AN: 454487606
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <Pine.SGI.3.96.990312091120.4086F-100000@aisa>
X-Original-Date: Fri, 12 Mar 1999 19:52:25 -0700
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 921315219 26313 128.250.29.16 (13 Mar 1999 08:53:39 GMT)
Organization: TAEUS
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANuonhOEDnX0m9pzZAQE+MAF+M6N7DtMsH611ozibiUN1Z+cDGUZuNRS+ tlNkhSFhez7V0GyxXfXw571/c5UzbS2n =BeEw
NNTP-Posting-Date: 13 Mar 1999 08:53:39 GMT
Newsgroups: comp.std.c++

In article <Pine.SGI.3.96.990312091120.4086F-100000@aisa>, 
xbatusek@fi.muni.cz says...
> 
> 
> Is there any _portable_ (ANSI compatible) C++ possibility to get the
> system time?

Other than time(), you mean?  If you want anything more precise than 
it provides (1 second at best) you have to do it non-portably, AFAIK.

> I have tried ftime but it doesn't work together with fstreams.

I'm not sure how ftime would relate to fstreams, but it's definitely 
NOT at all portable -- it's definitely not in the C or C++ standard 
libraries, and it doesn't even appear to be part of POSIX...
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



