1 /* $Id: timer.h 6129 2003-01-19 00:39:49Z rra $
3 ** Timer library interface.
5 ** An interface to a simple profiling library. An application can declare
6 ** its intent to use n timers by calling TMRinit(n), and then start and
7 ** stop numbered timers with TMRstart and TMRstop. TMRsummary logs the
8 ** results to syslog given labels for each numbered timer.
14 #include <inn/defines.h>
19 TMR_HISHAVE, /* Looking up ID in history (yes/no). */
20 TMR_HISGREP, /* Looking up ID in history (data). */
21 TMR_HISWRITE, /* Writing to history. */
22 TMR_HISSYNC, /* Syncing history to disk. */
23 TMR_APPLICATION /* Application numbering starts here. */
26 void TMRinit(unsigned int);
27 void TMRstart(unsigned int);
28 void TMRstop(unsigned int);
29 void TMRsummary(const char *prefix, const char *const *labels);
30 unsigned long TMRnow(void);
33 /* Return the current time as a double of seconds and fractional sections. */
34 double TMRnow_double(void);
38 #endif /* INN_TIMER_H */