Files
sics/statistics.h
Ferdi Franceschini dbc07ee639 Update from PSI
r1040 | ffr | 2006-08-03 10:05:34 +1000 (Thu, 03 Aug 2006) | 2 lines
2012-11-15 12:45:29 +11:00

37 lines
611 B
C

/* statistics.h
statistics on the time spend for commands/tasks
*/
#ifndef STATISTICS_H
#define STATISTICS_H
typedef struct Statistics Statistics;
Statistics *StatisticsNew(char *name);
/* create a new Statistics item */
void StatisticsKill(Statistics * s);
/* kill item */
Statistics *StatisticsBegin(Statistics * s);
void StatisticsEnd(Statistics * s);
/*
Switch statistics to item s.
Typical usage:
old = StatisticsBegin(thisItem);
...do work related with thisItem...
StatisticsEnd(old);
*/
void StatisticsInit(void);
/* initialize module and activate statistics command */
#endif