Mercurial > hg > xemacs-beta
comparison lib-src/profile.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
30 ** 'q' -- exit. | 30 ** 'q' -- exit. |
31 ** | 31 ** |
32 ** abstraction : a stopwatch | 32 ** abstraction : a stopwatch |
33 ** operations: reset_watch, get_time | 33 ** operations: reset_watch, get_time |
34 */ | 34 */ |
35 #include <config.h> | 35 #include <../src/config.h> |
36 #include <stdio.h> | 36 #include <stdio.h> |
37 #include <stdlib.h> | 37 #include <stdlib.h> |
38 #include "../src/systime.h" | 38 #include "../src/systime.h" |
39 | 39 |
40 static struct timeval TV1, TV2; | 40 static struct timeval TV1, TV2; |
41 static int watch_not_started = 1; /* flag */ | 41 static int watch_not_started = 1; /* flag */ |
42 static char time_string[30]; | 42 static char time_string[30]; |
43 | 43 |
44 #ifdef WIN32_NATIVE | 44 #ifdef WINDOWSNT |
45 #include <sys/timeb.h> | 45 #include <sys/timeb.h> |
46 /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ | 46 /* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ |
47 void | 47 void |
48 gettimeofday (struct timeval *tv, struct timezone *tz) | 48 gettimeofday (struct timeval *tv, struct timezone *tz) |
49 { | 49 { |