diff --git a/src/winmain.c b/src/winmain.c index be2ed01b5..3761751cd 100644 --- a/src/winmain.c +++ b/src/winmain.c @@ -220,7 +220,7 @@ SetAnalyse(char *Analyse, /* in: analysis type */ static int OldPercent = -2; /* Previous progress value */ static char OldAn[128]; /* Previous analysis type */ char s[128], t[128]; /* outputs to analysis window and task bar */ - PortableTime timer; /* previous time stamp and actual time stamp */ + PerfTimer timer; /* previous time stamp and actual time stamp */ int diffsec, diffmillisec; /* differences actual minus prev. time stamp */ WaitForIdle(); @@ -254,8 +254,7 @@ SetAnalyse(char *Analyse, /* in: analysis type */ sprintf(s, " %s: %3.1f%%", Analyse, (double)DecaPercent/10.); sprintf(t, "%s %3.1f%%", PACKAGE_STRING, (double)DecaPercent/10.); } -// timebefore.milliseconds = timenow.milliseconds; -// timebefore.seconds = timenow.seconds; + timer.start = timer.end; /* info when previous analysis period has finished */ if (strcmp(OldAn, Analyse)) { if ((ft_nginfo || ft_ngdebug) && (strcmp(OldAn, ""))) diff --git a/visualc/src/include/ngspice/config.h b/visualc/src/include/ngspice/config.h index 81707d84d..575a45346 100644 --- a/visualc/src/include/ngspice/config.h +++ b/visualc/src/include/ngspice/config.h @@ -163,6 +163,9 @@ /* Define to 1 if you have the `fork' function. */ /* #undef HAVE_FORK */ +/* Define to 1 if you have the `queryperformancecounter' function. */ +#define HAVE_QUERYPERFORMANCECOUNTER 1 + /* Define to 1 if you have the `ftime' function. */ #define HAVE_FTIME 1