timer functions rework - windows part
This commit is contained in:
parent
e0d88085f1
commit
8a8fcdd93d
|
|
@ -220,7 +220,7 @@ SetAnalyse(char *Analyse, /* in: analysis type */
|
||||||
static int OldPercent = -2; /* Previous progress value */
|
static int OldPercent = -2; /* Previous progress value */
|
||||||
static char OldAn[128]; /* Previous analysis type */
|
static char OldAn[128]; /* Previous analysis type */
|
||||||
char s[128], t[128]; /* outputs to analysis window and task bar */
|
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 */
|
int diffsec, diffmillisec; /* differences actual minus prev. time stamp */
|
||||||
|
|
||||||
WaitForIdle();
|
WaitForIdle();
|
||||||
|
|
@ -254,8 +254,7 @@ SetAnalyse(char *Analyse, /* in: analysis type */
|
||||||
sprintf(s, " %s: %3.1f%%", Analyse, (double)DecaPercent/10.);
|
sprintf(s, " %s: %3.1f%%", Analyse, (double)DecaPercent/10.);
|
||||||
sprintf(t, "%s %3.1f%%", PACKAGE_STRING, (double)DecaPercent/10.);
|
sprintf(t, "%s %3.1f%%", PACKAGE_STRING, (double)DecaPercent/10.);
|
||||||
}
|
}
|
||||||
// timebefore.milliseconds = timenow.milliseconds;
|
timer.start = timer.end;
|
||||||
// timebefore.seconds = timenow.seconds;
|
|
||||||
/* info when previous analysis period has finished */
|
/* info when previous analysis period has finished */
|
||||||
if (strcmp(OldAn, Analyse)) {
|
if (strcmp(OldAn, Analyse)) {
|
||||||
if ((ft_nginfo || ft_ngdebug) && (strcmp(OldAn, "")))
|
if ((ft_nginfo || ft_ngdebug) && (strcmp(OldAn, "")))
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,9 @@
|
||||||
/* Define to 1 if you have the `fork' function. */
|
/* Define to 1 if you have the `fork' function. */
|
||||||
/* #undef HAVE_FORK */
|
/* #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 to 1 if you have the `ftime' function. */
|
||||||
#define HAVE_FTIME 1
|
#define HAVE_FTIME 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue