diff options
author | Dave Davenport <qball@gmpclient.org> | 2015-11-14 13:49:42 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2015-11-14 13:49:42 +0100 |
commit | 12886ab0cb394bbc2515809f99486e00817cb66e (patch) | |
tree | 29a6e44154119afee2a575bb73be391e8058a873 /include/timings.h | |
parent | 80e873c8a31489c33cb62c7932797005adc201d3 (diff) |
Add missing timing files.
Diffstat (limited to 'include/timings.h')
-rw-r--r-- | include/timings.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/timings.h b/include/timings.h new file mode 100644 index 00000000..ffcf8a3f --- /dev/null +++ b/include/timings.h @@ -0,0 +1,23 @@ +#ifndef ROFI_TIMINGS_H +#define ROFI_TIMINGS_H +#include <config.h> +#if TIMINGS + +void rofi_timings_init ( void ); +void rofi_timings_tick ( char const *str, int line, char const *msg ); +void rofi_timings_quit ( void ); + +#define TIMINGS_START() rofi_timings_init (); +#define TICK() rofi_timings_tick ( __FUNCTION__, __LINE__, "" ); +#define TICK_N( a ) rofi_timings_tick ( __FUNCTION__, __LINE__, a ); +#define TIMINGS_STOP() rofi_timings_quit (); + +#else + +#define TIMINGS_START() +#define TIMINGS_STOP() +#define TICK() +#define TICK_N( a ) + +#endif // TIMINGS +#endif // ROFI_TIMINGS_H |