delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/07/12:16:28

From: perfecto AT mail2 DOT nai DOT net (Perry DOT Fecteau AT Republican DOT COM)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: An OS..
Date: Thu, 07 May 1998 15:52:02 GMT
Organization: Milhouse America
Lines: 11
Message-ID: <355cd89b.46585696@news.nai.net>
References: <6iqncs$1q3$1 AT alpha DOT sky DOT net> <6irsjt$11h$1 AT nnrp1 DOT dejanews DOT com>
NNTP-Posting-Host: ct-hartford-us1319.javanet.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019