Mail Archives: djgpp/1996/12/23/19:46:29
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------
- Raw text -