comparison lib/timevar.c @ 39871:08db1aa192ec

timevar: Small tweaks. * lib/timevar.h: Fix comments. Add parameter names to function declarations. * lib/timevar.c: Include timevar.h immediately after config.h. * lib/timevar.def: Fix comments. * modules/timevar (Maintainer): List Akim Demaille.
author Bruno Haible <bruno@clisp.org>
date Sun, 30 Sep 2018 19:36:29 +0200
parents f315e5e30ddd
children 13eae48fd484
comparison
equal deleted inserted replaced
39870:eaceb00fc84b 39871:08db1aa192ec
17 17
18 You should have received a copy of the GNU General Public License 18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 20
21 #include <config.h> 21 #include <config.h>
22
23 /* Specification. */
24 #include "timevar.h"
22 25
23 #include <stdio.h> 26 #include <stdio.h>
24 #include <string.h> 27 #include <string.h>
25 #include <stdlib.h> 28 #include <stdlib.h>
26 29
99 #elif defined USE_CLOCK 102 #elif defined USE_CLOCK
100 static float clocks_to_msec; 103 static float clocks_to_msec;
101 # define CLOCKS_TO_MSEC (1.0 / CLOCKS_PER_SEC) 104 # define CLOCKS_TO_MSEC (1.0 / CLOCKS_PER_SEC)
102 #endif 105 #endif
103 106
104 #include "timevar.h"
105
106 /* See timevar.h for an explanation of timing variables. */ 107 /* See timevar.h for an explanation of timing variables. */
107 108
108 int timevar_enabled = 0; 109 int timevar_enabled = 0;
109 110
110 /* A timing variable. */ 111 /* A timing variable. */