Mail Archives: djgpp/1998/05/07/12:16:28
On Thu, 07 May 1998 03:50:03 -0600, b52g AT usa DOT net wrote:
>FreeDOS is not yet compatible enough for DJGPP programs.
>
will it ever be?
-------------------- http://w3.nai.net/~perfecto -------------------------
Perry Fecteau's Blueprints to Success.
-------------------- http://w3.nai.net/~perfecto -------------------------
ast tuesday; I saw the
program still active on monday. However, in the results-output-file it
mentions that the program was finished already on the thursday morning,
several days earlier!! The date of this file is identical (!!) to the
date mentioned in the file. So I suspect that one way or another the
internal clock is affected by the program, but as it seems not
systematically. MSDOS must use the same clock for the date of the file.
The way I get the time and date is the following set of ANSI code:
int main()
{
...
time_t timer;
struct tm *tblock;
out= fopen(outfile,"w");
....
close(out);
for (..../*situations*/)
{
timer = time(NULL);
tblock = localtime(&timer);
printf("%s",asctime(tblock));
/* perform nsim simulations */
for (sim=0, init=1, nsing=0; sim<nsim; sim++, init=0)
{
....
}
out= fopen(outfile,"a");
/* ..... print results */
fprintf(out,"start time: %s",asctime(tblock));
timer = time(NULL);
tblock = localtime(&timer);
fprintf(out,"end time: %s",asctime(tblock));
fprintf(out,"\n\n\n");
fclose(out);
} /* for situations */
} /* main() */
Anybody got an explanation?
I still use the older go32 1.12maint3 with gcc 2.6.0.
Johan van Ooijen
j DOT w DOT vanooijen AT cpro DOT dlo DOT nl
- Raw text -