-
Notifications
You must be signed in to change notification settings - Fork 17
/
statistics.h
33 lines (22 loc) · 943 Bytes
/
statistics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ------- file: -------------------------- statistics.h ------------
Version: rh2.0
Author: Han Uitenbroek (huitenbroek@nso.edu)
Last modified: Mon Jan 24 15:57:13 2000 --
-------------------------- ----------RH-- */
#ifndef __STATISTICS_H__
#define __STATISTICS_H__
/* --- Keep track of program statistics like CPU time and memory usage
(not yet implemented).
-- -------------- */
#define N_TIME_LEVELS 5
enum CPUaction {TIME_START, TIME_POLL, TIME_ADD};
typedef struct {
bool_t printCPU;
long memory;
FILE *fp_CPU;
} ProgramStats;
/* --- Associated function prototypes -- -------------- */
void getCPU(int level, enum CPUaction action, char *label);
void printTotalCPU(void);
#endif /* !__STATISTICS_H__ */
/* ------- end ---------------------------- statistics.h ------------ */