From: Tudor Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP Date and Time Functions Date: Mon, 23 Dec 1996 18:09:39 -0800 Organization: Communications Accesibles Montreal Lines: 42 Message-ID: <32BF3B63.5C7B@cam.org> References: Reply-To: tudor AT cam DOT org NNTP-Posting-Host: dynamicppp-245.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eli Zaretskii wrote: > > On Wed, 18 Dec 1996, Murray Stokely wrote: > > > Can someone please explain to me how to make sense of the > > date/time functions in DJGPP? It seems to be a very unorganized mix > > of Dos and Unix commands. Like how do I simply display the LOCAL date > > and time? > > Sigh... I wonder if people actually care to look into the docs before > posting such question. > > The following is an excerpt from the libc reference which comes with > DJGPP. After you read it, please tell me: what can be more clear than > this? Well,it is clear ,but it doesn't work! I'm trying to make a frames-per-second function in a graphics stuff. I use _dos_gettime or gettime but neither works. I allways get equal and,of course, wrong times although the first gettime is at the begining and the other is at the end. EX: .... time start,end; .... gettime(&start); ..... ..... gettime(&end); at this point start.ti_min equals end.ti_min and the value is totally screwed up. Any suggestions? -- tudor 'at' cam 'dot' org http://www.cam.org/~tudor -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d-(--) s(-):(+) a? C+ UL>++++ P L>+++++ E- W++ N o K---(----) w--- O---- M-- V-? PS+++ PE Y PGP t+ 5-- X+++>++++ R tv b+ DI D+ G e->++ h>++ r- y>+++++ ------END GEEK CODE BLOCK------